Skip to content

Commit 806a0f8

Browse files
snewcomerljharb
andauthored
Update src/rules/no-duplicates.js
Co-authored-by: Jordan Harband <ljharb@gmail.com>
1 parent 40a94f5 commit 806a0f8

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
@@ -49,12 +49,12 @@ function checkTypeImports(imported, context) {
4949
fix, // Attach the autofix (if any) to the first import.
5050
});
5151

52-
for (const node of rest) {
52+
rest.forEach((node) => {
5353
context.report({
5454
node: node.source,
5555
message,
5656
});
57-
}
57+
});
5858
}
5959
}
6060
}

0 commit comments

Comments
 (0)