Skip to content

Commit ead4546

Browse files
rzzfFloEdelmann
andauthored
Update lib/rules/no-undef-directives.js
Co-authored-by: Flo Edelmann <git@flo-edelmann.de>
1 parent 0a2720e commit ead4546

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/rules/no-undef-directives.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,10 @@ class DefinedInOptionDirectives {
8080
}
8181

8282
/**
83-
* @param {string[]} names
83+
* @param {string} name
8484
*/
85-
addName(...names) {
86-
for (const name of names) {
87-
this.names.add(name)
88-
}
85+
addName(name) {
86+
this.names.add(name)
8987
}
9088

9189
/**

0 commit comments

Comments
 (0)