Skip to content

Commit be67c92

Browse files
committed
Remove a few eslint-disables
1 parent dea209e commit be67c92

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/mode/modeHandler.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,8 +1698,9 @@ export class ModeHandler implements vscode.Disposable, IModeHandler {
16981698
}
16991699

17001700
dispose() {
1701-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
1702-
this.disposables.map((d) => d.dispose());
1701+
for (const d of this.disposables) {
1702+
d.dispose();
1703+
}
17031704
}
17041705
}
17051706

test/testSimplifier.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,8 @@ function tokenizeKeySequence(sequence: string): string[] {
153153
// no close bracket, probably trying to do a left shift, take literal
154154
// char sequence
155155
const rawTokenize = (characters: string): void => {
156-
// eslint-disable-next-line @typescript-eslint/prefer-for-of
157-
for (let i = 0; i < characters.length; i++) {
158-
result.push(characters[i]);
156+
for (const c of characters) {
157+
result.push(c);
159158
}
160159
};
161160

0 commit comments

Comments
 (0)