lib/fasterer/scanners/method_call_scanner.rb in fasterer-0.8.0 vs lib/fasterer/scanners/method_call_scanner.rb in fasterer-0.8.1
- old
+ new
@@ -123,9 +123,10 @@
def check_symbol_to_proc
return unless method_call.block_argument_names.count == 1
return if method_call.block_body.nil?
return unless method_call.block_body.sexp_type == :call
return if method_call.arguments.count > 0
+ return if method_call.lambda_literal?
body_method_call = MethodCall.new(method_call.block_body)
return unless body_method_call.arguments.count.zero?
return if body_method_call.has_block?