lib/rubocop/cop/style/if_unless_modifier.rb in rubocop-0.50.0 vs lib/rubocop/cop/style/if_unless_modifier.rb in rubocop-0.51.0

- old
+ new

@@ -17,10 +17,11 @@ gvasgn ivasgn masgn].freeze def on_if(node) return unless eligible_node?(node) - add_offense(node, :keyword, format(MSG, node.keyword)) + add_offense(node, location: :keyword, + message: format(MSG, node.keyword)) end private def autocorrect(node)