mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
docs: rename ql-training-rst > ql-training
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import java
|
||||
|
||||
predicate isEmpty(Block block) {
|
||||
block.getNumStmt() = 0
|
||||
}
|
||||
|
||||
from IfStmt ifstmt
|
||||
where isEmpty(ifstmt.getThen())
|
||||
select ifstmt
|
||||
Reference in New Issue
Block a user