rspec/rules/S3931/description.adoc

2 lines
356 B
Plaintext
Raw Normal View History

2021-01-27 13:42:22 +01:00
Using the output of a non-boolean assignment as a condition is highly suspicious. Either it was done accidentally, and the assignment operator ``++=++`` was used in place of the equality operator ``++==++``, or it was done with the intent to rely on the automatic conversion of the non-boolean value to a boolean, which could be confusing for maintainers.