mirror of
https://github.com/github/codeql.git
synced 2026-02-20 08:53:49 +01:00
CFG: Completions: fix definition of boolean constants
This commit is contained in:
@@ -95,10 +95,10 @@ abstract class Completion extends TCompletion {
|
||||
private predicate isBooleanConstant(AstNode n, boolean value) {
|
||||
mustHaveBooleanCompletion(n) and
|
||||
(
|
||||
n.(Constant).getValue() = "true" and
|
||||
n instanceof True and
|
||||
value = true
|
||||
or
|
||||
n.(Constant).getValue() = "false" and
|
||||
n instanceof False and
|
||||
value = false
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user