docs: rename ql-training-rst > ql-training

This commit is contained in:
james
2019-08-30 16:53:33 +01:00
parent c8dd5e620c
commit 65573492e7
113 changed files with 0 additions and 118 deletions

View File

@@ -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."