Skip to content

Commit aafdf06

Browse files
committed
code clean #148 #178
1 parent c658233 commit aafdf06

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/linters/baseLinter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export abstract class BaseLinter {
110110
}).catch(error => {
111111
outputChannel.appendLine(`Linting with ${linterId} failed. If not installed please turn if off in settings.\n ${error}`);
112112
window.showInformationMessage(`Linting with ${linterId} failed. If not installed please turn if off in settings. View Python output for details.`);
113+
return [];
113114
});
114115
});
115116
}

src/client/providers/lintProvider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ export class LintProvider extends vscode.Disposable {
131131

132132
this.diagnosticCollection.delete(documentUri);
133133
this.diagnosticCollection.set(documentUri, messages);
134-
}).catch(error => {
135134
});
136135
}
137136
}

0 commit comments

Comments
 (0)