If statements with empty then branch
Author: LGTM
import codeql.ruby.AST
from IfExpr i
where not exists(i.getThen().getAChild())
select iDescription
Finds 'if' statements where the 'then' branch is an empty block statement
import codeql.ruby.AST
from IfExpr i
where not exists(i.getThen().getAChild())
select iFinds 'if' statements where the 'then' branch is an empty block statement