lib/fasterer/scanners/method_call_scanner.rb in fasterer-0.1.9 vs lib/fasterer/scanners/method_call_scanner.rb in fasterer-0.1.10

- old
+ new

@@ -81,9 +81,11 @@ case method_call.receiver.name when :shuffle add_offense(:shuffle_first_vs_sample) when :select + return unless method_call.receiver.has_block? + add_offense(:select_first_vs_detect) end end def check_each_offense