aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:01:24 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:48:39 +0900
commit2e7006ce24c42ec2b6642346d153429338e7334e (patch)
treef1eb9e843ab4ec5d7d3f08fff8c858174b6f1284 /src/background/controllers
parent0881f92d20cb7b4f5a75671df739c3eaa3cd0ff0 (diff)
npm run lint:fix
Diffstat (limited to 'src/background/controllers')
-rw-r--r--src/background/controllers/CommandController.ts16
-rw-r--r--src/background/controllers/OperationController.ts2
2 files changed, 9 insertions, 9 deletions
diff --git a/src/background/controllers/CommandController.ts b/src/background/controllers/CommandController.ts
index 11fed01..7297ef8 100644
--- a/src/background/controllers/CommandController.ts
+++ b/src/background/controllers/CommandController.ts
@@ -17,13 +17,13 @@ export default class CommandController {
}
getCompletions(line: string): Promise<CompletionGroup[]> {
- let trimmed = trimStart(line);
- let words = trimmed.split(/ +/);
- let name = words[0];
+ const trimmed = trimStart(line);
+ const words = trimmed.split(/ +/);
+ const name = words[0];
if (words.length === 1) {
return this.completionsUseCase.queryConsoleCommand(name);
}
- let keywords = trimStart(trimmed.slice(name.length));
+ const keywords = trimStart(trimmed.slice(name.length));
switch (words[0]) {
case 'o':
case 'open':
@@ -53,14 +53,14 @@ export default class CommandController {
// eslint-disable-next-line complexity
exec(line: string): Promise<any> {
- let trimmed = trimStart(line);
- let words = trimmed.split(/ +/);
- let name = words[0];
+ const trimmed = trimStart(line);
+ const words = trimmed.split(/ +/);
+ const name = words[0];
if (words[0].length === 0) {
return Promise.resolve();
}
- let keywords = trimStart(trimmed.slice(name.length));
+ const keywords = trimStart(trimmed.slice(name.length));
switch (words[0]) {
case 'o':
case 'open':
diff --git a/src/background/controllers/OperationController.ts b/src/background/controllers/OperationController.ts
index 2f5d4a6..181dd19 100644
--- a/src/background/controllers/OperationController.ts
+++ b/src/background/controllers/OperationController.ts
@@ -105,7 +105,7 @@ export default class OperationController {
return () => this.navigateUseCase.openRoot();
case operations.REPEAT_LAST:
return () => {
- let last = this.repeatUseCase.getLastOperation();
+ const last = this.repeatUseCase.getLastOperation();
if (typeof last !== 'undefined') {
return this.doOperation(1, last);
}