Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 623557b commit 8a50d99Copy full SHA for 8a50d99
1 file changed
javascript/ql/src/Declarations/UnusedVariable.ql
@@ -167,7 +167,7 @@ predicate whitelisted(UnusedLocal v) {
167
vd.isAmbient()
168
)
169
or
170
- exists(DirectEval eval |
+ exists(Expr eval | eval instanceof DirectEval or eval instanceof GeneratedCodeExpr |
171
// eval nearby
172
eval.getEnclosingFunction() = v.getADeclaration().getEnclosingFunction() and
173
// ... but not on the RHS
0 commit comments