Skip to content

Commit 8df30e8

Browse files
committed
Fixing bug in np-side-effect-cp whereby the bindings are undefined
1 parent 16b9964 commit 8df30e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rules/no-side-effect-cp.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ module.exports = {
2323
},
2424
create(context) {
2525
let inCPGettter = false;
26-
let bindings, emberImportBinding;
26+
let bindings = [];
27+
let emberImportBinding;
28+
2729
return {
2830
ImportDeclaration(node) {
2931
bindings = collectImportBindings(node, {

0 commit comments

Comments
 (0)