lib/fasterer/scanners/method_call_scanner.rb in fasterer-0.10.0 vs lib/fasterer/scanners/method_call_scanner.rb in fasterer-0.10.1

- old
+ new

@@ -84,9 +84,10 @@ case method_call.receiver.name when :shuffle add_offense(:shuffle_first_vs_sample) when :select return unless method_call.receiver.has_block? + return if method_call.arguments.count > 0 add_offense(:select_first_vs_detect) end end