Skip to content

Commit 3fc9090

Browse files
authored
removed unsed variable and made DocumentLinter switch statement consistent
1 parent 2ad855f commit 3fc9090

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugin/vscode/extension.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,13 @@ class DocumentLinter {
130130
switch (this._state) {
131131
case DocumentLinterState.NO_PARSER:
132132
await this._createParser();
133-
return await this.editorChangedVisibilityAsync();
133+
await this.editorChangedVisibilityAsync();
134+
break;
134135

135136
case DocumentLinterState.CREATING_PARSER:
136137
await this._parserPromise;
137-
return await this.editorChangedVisibilityAsync();
138+
await this.editorChangedVisibilityAsync();
139+
break;
138140

139141
case DocumentLinterState.PARSER_UNINITIALIZED:
140142
await this._initializeParserAsync();
@@ -347,7 +349,6 @@ class DocumentLinterCollection {
347349
}
348350

349351
async disposeAsync() {
350-
let linters = this._linters;
351352
this._linters = new Map();
352353
for (let [_uri, linter] of this._linters) {
353354
await linter.disposeAsync();

0 commit comments

Comments
 (0)