Having two `when` clauses in a `case` statement or two branches in an `if` chain with the same implementation is at best duplicate code, and at worst a coding error.