If statements with empty then branch

Author: LGTM

import codeql.ruby.AST

from IfExpr i
where not exists(i.getThen().getAChild())
select i

Description

Finds 'if' statements where the 'then' branch is an empty block statement