File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ module.exports = {
147
147
}
148
148
149
149
function findVariableViolation ( node , name ) {
150
- getBlockStatementAncestors ( ) . find (
150
+ getBlockStatementAncestors ( node ) . find (
151
151
( block ) => reportVariableViolation ( node , name , block . range [ 0 ] )
152
152
) ;
153
153
}
@@ -158,7 +158,7 @@ module.exports = {
158
158
} ,
159
159
160
160
FunctionDeclaration ( node ) {
161
- const blockAncestors = getBlockStatementAncestors ( ) ;
161
+ const blockAncestors = getBlockStatementAncestors ( node ) ;
162
162
const variableViolationType = getNodeViolationType ( node ) ;
163
163
164
164
if ( blockAncestors . length > 0 && variableViolationType ) {
@@ -170,7 +170,7 @@ module.exports = {
170
170
if ( ! node . init ) {
171
171
return ;
172
172
}
173
- const blockAncestors = getBlockStatementAncestors ( ) ;
173
+ const blockAncestors = getBlockStatementAncestors ( node ) ;
174
174
const variableViolationType = getNodeViolationType ( node . init ) ;
175
175
176
176
const nodeParent = /** @type {import("estree").VariableDeclaration } */ ( node . parent ) ;
You can’t perform that action at this time.
0 commit comments