Skip to content

Commit ce537c0

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

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
@@ -76,12 +76,12 @@ function checkInlineTypeImports(imported, context) {
7676
fix, // Attach the autofix (if any) to the first import.
7777
});
7878

79-
for (const node of rest) {
79+
rest.forEach((node) => {
8080
context.report({
8181
node: node.source,
8282
message,
8383
});
84-
}
84+
});
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)