Duplicate Condition Branches (ARCH8190)
Esta página aún no está disponible en tu idioma.
Key kotlin.quality.duplicate-condition-branches · Severity warning · Category quality
Flags if / else or when branches whose bodies are identical.
Incorrect
Section titled “Incorrect”if (a) { save() } else { save() }Correct
Section titled “Correct”save()Merge the branches or fix the condition that was meant to differ.