If statements with empty then branch
Author: LGTM
import python
from If i
where
not exists(Stmt s |
i.getStmt(_) = s and
not s instanceof Pass
)
select i
Description
Finds 'if' statements where the 'then' branch consists entirely of Pass statements