mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
Javascript: Autoformat.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
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."
|
||||
where
|
||||
e.isPure() and
|
||||
e.getParent() instanceof ExprStmt and
|
||||
not e.getParent() instanceof Directive // new check
|
||||
select e, "This expression has no effect."
|
||||
|
||||
Reference in New Issue
Block a user