diff --git a/src/vnm_mad/remotes/lib/tproxy.rb b/src/vnm_mad/remotes/lib/tproxy.rb index 09b24e9cd3..4295bcdc47 100644 --- a/src/vnm_mad/remotes/lib/tproxy.rb +++ b/src/vnm_mad/remotes/lib/tproxy.rb @@ -261,7 +261,9 @@ module VNMMAD pass2 = pass1.lines.each_with_object([]) do |line, a| next if line =~ /^\s*$/ # ignore empty lines + # rubocop:disable Style/RedundantRegexpCharacterClass line.gsub!(/([^ ])[ ]+/, '\1 ') # remove redundant spaces + # rubocop:enable Style/RedundantRegexpCharacterClass a << line end.join