franzejr / best-ruby

Ruby Tricks, Idiomatic Ruby, Refactoring and Best Practices
http://franzejr.github.io/best-ruby/
2.39k stars 219 forks source link

Unused Temporary Assignment #65

Closed michaelgreenwell closed 8 years ago

michaelgreenwell commented 8 years ago

It doesn't make any sense to assign the results of the map operations to temporary variables in these methods.

franzejr commented 8 years ago

Yeah, you are right! Thanks!