diff options
author | Grégoire Geis <[email protected]> | 2020-02-04 00:44:12 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-04 00:44:12 +0000 |
commit | 875dc6d1a4973f70cd48b797ae755d1bd7a83fa5 (patch) | |
tree | 6ffb68a9a23ac219b99536514b84fb82cf0934c8 /editors/code/src/commands | |
parent | 7fd661f0853ef3a32bfb8a01617de8e5adb3ca01 (diff) |
Merge two if statements into one in editors/code/src/commands/on_enter.ts.
Co-Authored-By: Veetaha <[email protected]>
Diffstat (limited to 'editors/code/src/commands')
-rw-r--r-- | editors/code/src/commands/on_enter.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands/on_enter.ts b/editors/code/src/commands/on_enter.ts index ac582b423..c636234da 100644 --- a/editors/code/src/commands/on_enter.ts +++ b/editors/code/src/commands/on_enter.ts | |||
@@ -8,7 +8,7 @@ async function handleKeypress(ctx: Ctx) { | |||
8 | const editor = ctx.activeRustEditor; | 8 | const editor = ctx.activeRustEditor; |
9 | const client = ctx.client; | 9 | const client = ctx.client; |
10 | if (!editor) return false; | 10 | if (!editor) return false; |
11 | if (!client) return false; | 11 | if (!editor || !client) return false; |
12 | 12 | ||
13 | const request: lc.TextDocumentPositionParams = { | 13 | const request: lc.TextDocumentPositionParams = { |
14 | textDocument: { uri: editor.document.uri.toString() }, | 14 | textDocument: { uri: editor.document.uri.toString() }, |