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

- old
+ new

@@ -21,16 +21,16 @@ MSG = 'Use `Kernel#loop` for infinite loops.'.freeze def on_while(node) return unless node.condition.truthy_literal? - add_offense(node, :keyword) + add_offense(node, location: :keyword) end def on_until(node) return unless node.condition.falsey_literal? - add_offense(node, :keyword) + add_offense(node, location: :keyword) end alias on_while_post on_while alias on_until_post on_until