If statements with empty then branch
Author: LGTM
import csharp
from IfStmt i
where i.getThen().(BlockStmt).isEmpty()
select iDescription
Finds 'if' statements where the 'then' branch is an empty block statement
import csharp
from IfStmt i
where i.getThen().(BlockStmt).isEmpty()
select iFinds 'if' statements where the 'then' branch is an empty block statement