mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
8 lines
263 B
Plaintext
8 lines
263 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."
|