Merge two if statements into one in editors/code/src/commands/on_enter.ts.
Co-Authored-By: Veetaha <veetaha2@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@ async function handleKeypress(ctx: Ctx) {
|
|||||||
const editor = ctx.activeRustEditor;
|
const editor = ctx.activeRustEditor;
|
||||||
const client = ctx.client;
|
const client = ctx.client;
|
||||||
if (!editor) return false;
|
if (!editor) return false;
|
||||||
if (!client) return false;
|
if (!editor || !client) return false;
|
||||||
|
|
||||||
const request: lc.TextDocumentPositionParams = {
|
const request: lc.TextDocumentPositionParams = {
|
||||||
textDocument: { uri: editor.document.uri.toString() },
|
textDocument: { uri: editor.document.uri.toString() },
|
||||||
|
|||||||
Reference in New Issue
Block a user