Skip to content

Commit 22a8f39

Browse files
committed
Fix lint
1 parent 2aaf813 commit 22a8f39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function activate(context: vscode.ExtensionContext): void {
1616
vscode.commands.registerCommand('sortLines.sortLinesShuffle', sortLines.sortShuffle),
1717
vscode.commands.registerCommand('sortLines.removeDuplicateLines', sortLines.removeDuplicateLines),
1818
vscode.commands.registerCommand('sortLines.keepOnlyDuplicateLines', sortLines.keepOnlyDuplicateLines),
19-
vscode.commands.registerCommand('sortLines.keepOnlyNotDuplicateLines', sortLines.keepOnlyNotDuplicateLines),
19+
vscode.commands.registerCommand('sortLines.keepOnlyNotDuplicateLines', sortLines.keepOnlyNotDuplicateLines)
2020
];
2121

2222
commands.forEach(command => context.subscriptions.push(command));

src/sort-lines.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function keepOnlyDuplicates(lines: string[]): string[] {
6161
}
6262

6363
function keepOnlyNotDuplicates(lines: string[]): string[] {
64-
return Array.from(new Set(lines.filter((element, index, array) => (array.lastIndexOf(element) == array.indexOf(element)))));
64+
return Array.from(new Set(lines.filter((element, index, array) => (array.lastIndexOf(element) === array.indexOf(element)))));
6565
}
6666

6767
function removeBlanks(lines: string[]): void {

0 commit comments

Comments
 (0)