lib/rubocop/cop/layout/empty_comment.rb in rubocop-1.30.1 vs lib/rubocop/cop/layout/empty_comment.rb in rubocop-1.31.0

- old
+ new

@@ -95,10 +95,10 @@ end def autocorrect(corrector, node) previous_token = previous_token(node) range = if previous_token && same_line?(node, previous_token) - range_with_surrounding_space(range: node.loc.expression, newlines: false) + range_with_surrounding_space(node.loc.expression, newlines: false) else range_by_whole_lines(node.loc.expression, include_final_newline: true) end corrector.remove(range)