W3002 Warnings

redundant-condition

condition is always true/false

When this occurs

Constant condition in if/while

Example error message

warning[W3002]: condition 'true' is always true

How to fix

Simplify your condition or remove the check entirely. Suppress with `@Suppress(W3002)`.

Related errors