vscode: apply review nits

This commit is contained in:
Veetaha 2020-03-31 19:06:07 +03:00 committed by GitHub
parent e86bfc0995
commit 3b09768ebc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}