Avoid Empty If Statements

Impact area

Manageability

Severity

Medium

Affected element

Apex  Class

Rule ID

SF-0040

Impact

Empty if statements serve no purpose and are likely bugs.


Remediation

Remove the empty if statement.

Time to fix

30 min

What's here


Related content

PMD - Apex Class rules

PMD: EmptyIfStmt




Last modified on Jun 10, 2020