We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bec7ba commit 2f37326Copy full SHA for 2f37326
ruby/ql/src/queries/variables/UninitializedLocal.ql
@@ -18,6 +18,10 @@ class RelevantLocalVariableReadAccess extends LocalVariableReadAccess {
18
not exists(MethodCall c |
19
c.getReceiver() = this and
20
c.getMethodName() = "nil?"
21
+ ) and
22
+ not exists(BinaryOperation b |
23
+ b.getLeftOperand() = this and
24
+ b.getOperator() = "||"
25
)
26
}
27
0 commit comments