rspec/rules/S1871/common/description.adoc
2023-10-24 12:02:02 +00:00

3 lines
161 B
Plaintext

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