mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 22:24:14 +00:00
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:
parent
7fd661f085
commit
875dc6d1a4
1 changed files with 1 additions and 1 deletions
|
@ -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() },
|
||||||
|
|
Loading…
Reference in a new issue