rspec/rules/S1871/ruby/description.adoc

1 line
165 B
Plaintext
Raw Permalink Normal View History

2023-10-24 14:02:02 +02:00
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.