Skip to main content

Duplicated value in an IN condition

Duplicated values in an IN condition can be either a copy/paste error and therefore a bug, or it is simply wasted code, and should be simplified.

Noncompliant Code Example

if value in (a, a, b) then ...

Compliant Solution

if value in (a, b) then ...