org.sonar.l10n.plsqlopen.rules.plsql.UnnecessaryElse.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zpa-checks Show documentation
Show all versions of zpa-checks Show documentation
Z PL/SQL Analyzer :: Checks
The newest version!
When the IF clause of a IF-THEN-ELSE structure does not complete successfully, the ELSE clause is unnecessary.
Noncompliant Code Example
BEGIN
IF condition THEN
RETURN value;
ELSE
value := NULL;
END IF;
END;
Compliant Solution
BEGIN
IF condition THEN
RETURN value;
END IF;
value := NULL;
END;