mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
12 lines
315 B
Plaintext
12 lines
315 B
Plaintext
import javascript
|
|
|
|
query predicate test_query13(StrictEqualityTest eq, string res) {
|
|
exists(DataFlow::AnalyzedNode nd, NullLiteral null |
|
|
eq.hasOperands(nd.asExpr(), null) and
|
|
not nd.getAValue().isIndefinite(_) and
|
|
not nd.getAValue() instanceof AbstractNull
|
|
|
|
|
res = "Spurious null check."
|
|
)
|
|
}
|