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:
Grégoire Geis 2020-02-04 01:44:12 +01:00 committed by GitHub
parent 7fd661f085
commit 875dc6d1a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ async function handleKeypress(ctx: Ctx) {
const editor = ctx.activeRustEditor;
const client = ctx.client;
if (!editor) return false;
if (!client) return false;
if (!editor || !client) return false;
const request: lc.TextDocumentPositionParams = {
textDocument: { uri: editor.document.uri.toString() },