lib/rubocop/cop/style/lambda.rb in rubocop-0.58.2 vs lib/rubocop/cop/style/lambda.rb in rubocop-0.59.0

- old
+ new

@@ -127,9 +127,10 @@ corrector.insert_before(node.loc.begin, ' ') end corrector.replace(block_method.source_range, 'lambda') corrector.remove(args.source_range) if args.source_range return if args.children.empty? + arg_str = " |#{lambda_arg_string(args)}|" corrector.insert_after(node.loc.begin, arg_str) end def autocorrect_method_to_literal(corrector, node)