mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
7 lines
198 B
Plaintext
7 lines
198 B
Plaintext
import javascript
|
|
|
|
from Expr e
|
|
where e.isPure() and
|
|
e.getParent() instanceof ExprStmt and
|
|
not e.getParent() instanceof Directive // new check
|
|
select e, "This expression has no effect." |