Skip to content

Commit 2889e89

Browse files
committed
[Refactor] no-unused-state: combine spread visitors
1 parent 7dce90a commit 2889e89

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/rules/no-unused-state.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,7 @@ module.exports = {
374374
}
375375
},
376376

377-
ExperimentalSpreadProperty(node) {
378-
if (classInfo && isStateReference(node.argument)) {
379-
classInfo = null;
380-
}
381-
},
382-
383-
SpreadElement(node) {
377+
'ExperimentalSpreadProperty, SpreadElement'(node) {
384378
if (classInfo && isStateReference(node.argument)) {
385379
classInfo = null;
386380
}

0 commit comments

Comments
 (0)