lib/rubocop/cop/style/ternary_parentheses.rb in rubocop-1.66.1 vs lib/rubocop/cop/style/ternary_parentheses.rb in rubocop-1.67.0
- old
+ new
@@ -73,10 +73,10 @@
return if condition_as_parenthesized_one_line_pattern_matching?(condition)
return unless node.ternary? && offense?(node)
message = message(node)
- add_offense(node.source_range, message: message) do |corrector|
+ add_offense(node, message: message) do |corrector|
autocorrect(corrector, node)
end
end
private