rspec/rules/S2758/description.adoc

2 lines
225 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
When the second and third operands of a ternary operator are the same, the operator will always return the same value regardless of the condition. Either the operator itself is pointless, or a mistake was made in coding it.