Skip to content

Commit 768fb1c

Browse files
snewcomerljharb
andcommitted
Update src/rules/no-duplicates.js
Co-authored-by: Jordan Harband <[email protected]>
1 parent 3fe62da commit 768fb1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rules/no-duplicates.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ function checkTypeImports(imported, context) {
5151
fix, // Attach the autofix (if any) to the first import.
5252
});
5353

54-
for (const node of rest) {
54+
rest.forEach((node) => {
5555
context.report({
5656
node: node.source,
5757
message,
5858
});
59-
}
59+
});
6060
}
6161
}
6262
}

0 commit comments

Comments
 (0)