mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
9 lines
257 B
Plaintext
9 lines
257 B
Plaintext
import javascript
|
|
|
|
from StrictEqualityTest eq, DataFlow::AnalyzedNode nd, NullLiteral null
|
|
where
|
|
eq.hasOperands(nd.asExpr(), null) and
|
|
not nd.getAValue().isIndefinite(_) and
|
|
not nd.getAValue() instanceof AbstractNull
|
|
select eq, "Spurious null check."
|