Skip to content

Commit d621a07

Browse files
committed
ruby: fix ql alert
1 parent c657a31 commit d621a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/src/queries/variables/UninitializedLocal.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class RelevantLocalVariableReadAccess extends LocalVariableReadAccess {
8282
not exists(ConditionalExpr c | factor(c.getCondition(), this.getVariable().getAnAccess()) |
8383
this = c.getBranch(true).getAChild*()
8484
) and
85-
not exists(ConditionalLoop l | loopProtects(l, this))
85+
not loopProtects(_, this)
8686
}
8787
}
8888

0 commit comments

Comments
 (0)