Skip to content

Commit 875dc6d

Browse files
71Veetaha
andauthored
Merge two if statements into one in editors/code/src/commands/on_enter.ts.
Co-Authored-By: Veetaha <[email protected]>
1 parent 7fd661f commit 875dc6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editors/code/src/commands/on_enter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function handleKeypress(ctx: Ctx) {
88
const editor = ctx.activeRustEditor;
99
const client = ctx.client;
1010
if (!editor) return false;
11-
if (!client) return false;
11+
if (!editor || !client) return false;
1212

1313
const request: lc.TextDocumentPositionParams = {
1414
textDocument: { uri: editor.document.uri.toString() },

0 commit comments

Comments
 (0)