rspec/rules/S1854/howtofixit.adoc

4 lines
244 B
Plaintext
Raw Normal View History

2023-10-13 12:26:37 +02:00
== How to fix it
Remove the unnecesarry assignment, then test the code to make sure that the right-hand side of a given assignment had no side effects (e.g. a method that writes certain data to a file and returns the number of written bytes).