Pattern: Empty statement
Issue: -
Empty statements almost always indicate a bug.
For example,
Example of incorrect code:
if (complicated.expression.foo());
bar();
Formatted with dartfmt
the bug becomes obvious:
if (complicated.expression.foo()) ;
bar();
Better to avoid the empty statement altogether.
Example of correct code:
if (complicated.expression.foo())
bar();