lib/rubycritic/core/smell.rb in rubycritic-4.8.0 vs lib/rubycritic/core/smell.rb in rubycritic-4.8.1

- old
+ new

@@ -18,10 +18,10 @@ FLAY_DOCS_URL = 'http://docs.seattlerb.org/flay/'.freeze FLOG_DOCS_URL = 'http://docs.seattlerb.org/flog/'.freeze def at_location?(other_location) - locations.any? { |location| location == other_location } + locations.any?(other_location) end def multiple_locations? locations.length > 1 end