lib/rubocop/cop/style/align_hash.rb in rubocop-0.21.0 vs lib/rubocop/cop/style/align_hash.rb in rubocop-0.22.0

- old
+ new

@@ -145,13 +145,13 @@ MSG = 'Align the elements of a hash literal if they span more than ' \ 'one line.' def on_send(node) - if (last_child = node.children.last) && hash?(last_child) && - ignore_last_argument_hash?(last_child) - ignore_node(last_child) - end + return unless (last_child = node.children.last) && + hash?(last_child) && ignore_last_argument_hash?(last_child) + + ignore_node(last_child) end def on_hash(node) return if ignored_node?(node) return if node.children.empty?