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,11 @@
|
||||
import java
|
||||
|
||||
class EmptyBlock extends Block {
|
||||
EmptyBlock() { this.getNumStmt() = 0 }
|
||||
}
|
||||
|
||||
from IfStmt ifstmt
|
||||
where
|
||||
ifstmt.getThen() instanceof EmptyBlock and
|
||||
not exists(ifstmt.getElse())
|
||||
select ifstmt, "This if-statement is redundant."
|
||||
Reference in New Issue
Block a user