diff options
author | Adolfo OchagavĂa <[email protected]> | 2018-10-08 19:18:55 +0100 |
---|---|---|
committer | Adolfo OchagavĂa <[email protected]> | 2018-10-08 19:18:55 +0100 |
commit | 62b1b05a0d9dd021f98352b6229e48e0d8b94f78 (patch) | |
tree | 92627c1590c7f38b29a6d0d86f1db3d5b7332ad0 /editors/code/src/commands/runnables.ts | |
parent | 4d62cfccbb8281f33b6f894df07e7316a9d45bfb (diff) |
Fix remaining tslint suggestions
Diffstat (limited to 'editors/code/src/commands/runnables.ts')
-rw-r--r-- | editors/code/src/commands/runnables.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts index 37db6ea10..40f590dce 100644 --- a/editors/code/src/commands/runnables.ts +++ b/editors/code/src/commands/runnables.ts | |||
@@ -59,7 +59,7 @@ function createTask(spec: Runnable): vscode.Task { | |||
59 | let prevRunnable: RunnableQuickPick | undefined; | 59 | let prevRunnable: RunnableQuickPick | undefined; |
60 | export async function handle() { | 60 | export async function handle() { |
61 | const editor = vscode.window.activeTextEditor; | 61 | const editor = vscode.window.activeTextEditor; |
62 | if (editor == null || editor.document.languageId != 'rust') { return; } | 62 | if (editor == null || editor.document.languageId !== 'rust') { return; } |
63 | const textDocument: lc.TextDocumentIdentifier = { | 63 | const textDocument: lc.TextDocumentIdentifier = { |
64 | uri: editor.document.uri.toString(), | 64 | uri: editor.document.uri.toString(), |
65 | }; | 65 | }; |
@@ -73,7 +73,7 @@ export async function handle() { | |||
73 | items.push(prevRunnable); | 73 | items.push(prevRunnable); |
74 | } | 74 | } |
75 | for (const r of runnables) { | 75 | for (const r of runnables) { |
76 | if (prevRunnable && JSON.stringify(prevRunnable.runnable) == JSON.stringify(r)) { | 76 | if (prevRunnable && JSON.stringify(prevRunnable.runnable) === JSON.stringify(r)) { |
77 | continue; | 77 | continue; |
78 | } | 78 | } |
79 | items.push(new RunnableQuickPick(r)); | 79 | items.push(new RunnableQuickPick(r)); |