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

- old
+ new

@@ -97,10 +97,12 @@ case method_call.receiver.name when :reverse add_offense(:reverse_each_vs_reverse_each) when :keys - add_offense(:keys_each_vs_each_key) + if method_call.receiver.arguments.count.zero? + add_offense(:keys_each_vs_each_key) + end end end def check_flatten_offense return method_call unless method_call.receiver.is_a?(MethodCall)