mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Use includes instead of indexOf
This commit is contained in:
@@ -77,7 +77,7 @@ class FileDiagnostics {
|
||||
return this.get(DiagnosticKind.Suggestion).filter(x => {
|
||||
if (!enableSuggestions) {
|
||||
// Still show unused
|
||||
return x.tags && x.tags.indexOf(vscode.DiagnosticTag.Unnecessary) !== -1;
|
||||
return x.tags && x.tags.includes(vscode.DiagnosticTag.Unnecessary);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user