rspec/rules/S2758/description.adoc
2020-06-30 17:16:12 +02:00

2 lines
225 B
Plaintext

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.