about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorveetaha <veetaha2@gmail.com>2020-03-31 20:29:07 +0300
committerveetaha <veetaha2@gmail.com>2020-03-31 20:29:07 +0300
commit90cc8cc52897293f3c27acbd981d9c751b542f2e (patch)
tree06c23da5c1d38aff2b3c8b7b1205e4a091ac9d1b /editors/code/src
parentf3612b7024e5828bdd37fb6d39c1b4ebe989e819 (diff)
parent3b09768ebcd7ea6523c58c92e32198ae5b18e11c (diff)
downloadrust-90cc8cc52897293f3c27acbd981d9c751b542f2e.tar.gz
rust-90cc8cc52897293f3c27acbd981d9c751b542f2e.zip
vscode: small refactor
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 e443c5e5426..996c7a71697 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);
         }
     }