lib/rubocop/cop/salsify/style_dig.rb in salsify_rubocop-0.58.0.rc1 vs lib/rubocop/cop/salsify/style_dig.rb in salsify_rubocop-0.59.2.1.rc1

- old
+ new

@@ -27,9 +27,10 @@ (send (send (send _receiver !:[]) :[] !{irange erange}) :[] !{irange erange}) PATTERN def on_send(node) return unless nested_access_match(node) && !assignment?(node) + match_node = node # walk to outermost access node match_node = match_node.parent while access_node?(match_node.parent) add_offense(match_node, location: :expression, message: MSG) end