lib/rubocop/cop/custom_error_class.rb in gitlab-styles-10.0.0 vs lib/rubocop/cop/custom_error_class.rb in gitlab-styles-10.1.0
- old
+ new
@@ -34,10 +34,10 @@
klass = node.identifier
parent = node.parent_class
replacement = "#{class_name_from_node(klass)} = Class.new(#{class_name_from_node(parent)})"
- corrector.replace(node.source_range, replacement)
+ corrector.replace(node, replacement)
end
end
private