lib/rubocop/cop/style/expand_path_arguments.rb in rubocop-1.12.1 vs lib/rubocop/cop/style/expand_path_arguments.rb in rubocop-1.13.0

- old
+ new

@@ -83,12 +83,10 @@ if (current_path, default_dir = file_expand_path(node)) inspect_offense_for_expand_path(node, current_path, default_dir) elsif (default_dir = pathname_parent_expand_path(node)) return unless unrecommended_argument?(default_dir) - add_offense(node, message: PATHNAME_MSG) do |corrector| - autocorrect(corrector, node) - end + add_offense(node, message: PATHNAME_MSG) { |corrector| autocorrect(corrector, node) } elsif (default_dir = pathname_new_parent_expand_path(node)) return unless unrecommended_argument?(default_dir) add_offense(node, message: PATHNAME_NEW_MSG) do |corrector| autocorrect(corrector, node)