lib/rubocop/cop/lint/debugger.rb in rubocop-0.37.0 vs lib/rubocop/cop/lint/debugger.rb in rubocop-0.37.1
- old
+ new
@@ -31,11 +31,11 @@
block = node.parent
body = block.children[2] # (block <send> <parameters> <body>)
corrector.replace(block.source_range, body.source)
else
range = node.source_range
- range = range_with_surrounding_space(range, :left, nil, false)
- range = range_with_surrounding_space(range, :right, nil, true)
+ range = range_with_surrounding_space(range, :left, false)
+ range = range_with_surrounding_space(range, :right, true)
corrector.remove(range)
end
end
end
end