aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/OperationController.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-21 17:51:48 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-12-21 18:42:49 +0900
commit5963b91cbdf880e1f10b77146d3be5775f0920c0 (patch)
tree15e4662e4ace516899430a98f04747dea0bef589 /src/background/controllers/OperationController.ts
parentd05f1ad554551919f8c603d335df578674752b06 (diff)
Rename count to repeat
Diffstat (limited to 'src/background/controllers/OperationController.ts')
-rw-r--r--src/background/controllers/OperationController.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/background/controllers/OperationController.ts b/src/background/controllers/OperationController.ts
index 69b45c3..2f5d4a6 100644
--- a/src/background/controllers/OperationController.ts
+++ b/src/background/controllers/OperationController.ts
@@ -21,8 +21,8 @@ export default class OperationController {
) {
}
- async exec(count: number, op: operations.Operation): Promise<any> {
- await this.doOperation(count, op);
+ async exec(repeat: number, op: operations.Operation): Promise<any> {
+ await this.doOperation(repeat, op);
if (this.repeatUseCase.isRepeatable(op)) {
this.repeatUseCase.storeLastOperation(op);
}
@@ -30,7 +30,7 @@ export default class OperationController {
// eslint-disable-next-line complexity, max-lines-per-function
async doOperation(
- count: number,
+ repeat: number,
operation: operations.Operation,
): Promise<any> {
// eslint-disable-next-line complexity, max-lines-per-function
@@ -119,7 +119,7 @@ export default class OperationController {
}
})();
- for (let i = 0; i < count; ++i) {
+ for (let i = 0; i < repeat; ++i) {
// eslint-disable-next-line no-await-in-loop
await opFunc();
}