If statements with empty then branch
Author: LGTM
import go
from IfStmt i
where i.getThen().getNumStmt() = 0
select i
Description
Finds 'if' statements where the 'then' branch is an empty block statement
import go
from IfStmt i
where i.getThen().getNumStmt() = 0
select i
Finds 'if' statements where the 'then' branch is an empty block statement