diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-12-21 17:51:48 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-12-21 18:42:49 +0900 |
commit | 5963b91cbdf880e1f10b77146d3be5775f0920c0 (patch) | |
tree | 15e4662e4ace516899430a98f04747dea0bef589 /src/background/controllers/OperationController.ts | |
parent | d05f1ad554551919f8c603d335df578674752b06 (diff) |
Rename count to repeat
Diffstat (limited to 'src/background/controllers/OperationController.ts')
-rw-r--r-- | src/background/controllers/OperationController.ts | 8 |
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(); } |