mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
Add eslint rule to prevent Map.has call immediately before Map.delete
This commit is contained in:
@@ -731,9 +731,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
|
||||
this._decorationIdToCellMap.delete(id);
|
||||
}
|
||||
|
||||
if (this._overviewRulerDecorations.has(id)) {
|
||||
this._overviewRulerDecorations.delete(id);
|
||||
}
|
||||
this._overviewRulerDecorations.delete(id);
|
||||
});
|
||||
|
||||
const result: string[] = [];
|
||||
|
||||
Reference in New Issue
Block a user