Having all branches in a when or if chain with the same implementation is an error. Either a copy-paste error was made and something different should be executed, or there shouldn't be a when/if chain at all.

Exceptions

This rule does not apply to if chains without else-s, or to whens without else clauses.