rspec/rules/S3923/description.adoc

2 lines
245 B
Plaintext
Raw Normal View History

2021-01-27 13:42:22 +01:00
Having all branches in a ``++switch++`` 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 ``++switch++``/``++if++`` chain at all.