about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorVeetaha <veetaha2@gmail.com>2020-03-31 19:06:07 +0300
committerGitHub <noreply@github.com>2020-03-31 19:06:07 +0300
commit3b09768ebcd7ea6523c58c92e32198ae5b18e11c (patch)
tree0872d26214871960fa22d98e4e655a83806f2ef0 /editors/code/src
parente86bfc0995a0c52eeed2703d33a9089032b68c77 (diff)
downloadrust-3b09768ebcd7ea6523c58c92e32198ae5b18e11c.tar.gz
rust-3b09768ebcd7ea6523c58c92e32198ae5b18e11c.zip
vscode: apply review nits
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/commands/syntax_tree.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands/syntax_tree.ts b/editors/code/src/commands/syntax_tree.ts
index eba5111930b..91d97f9c4f2 100644
--- a/editors/code/src/commands/syntax_tree.ts
+++ b/editors/code/src/commands/syntax_tree.ts
@@ -98,7 +98,7 @@ class AstInspector implements vscode.HoverProvider, Disposable {
     }
 
     private onDidCloseTextDocument(doc: vscode.TextDocument) {
-        if (!!this.rustEditor && doc.uri.toString() === this.rustEditor.document.uri.toString()) {
+        if (this.rustEditor && doc.uri.toString() === this.rustEditor.document.uri.toString()) {
             this.setRustEditor(undefined);
         }
     }