Auto-fix Lint/ErbNewArguments offenses

This commit is contained in:
Issy Long 2019-10-13 10:09:38 +01:00
parent 245c61017f
commit 69d84ebfd9
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ module Homebrew
readme.read[/(Former maintainers .*\.)/, 1] readme.read[/(Former maintainers .*\.)/, 1]
.gsub(/\[([^\]]+)\]\([^)]+\)/, '\1') .gsub(/\[([^\]]+)\]\([^)]+\)/, '\1')
ERB.new(template, nil, ">").result(variables.instance_eval { binding }) ERB.new(template, trim_mode: ">").result(variables.instance_eval { binding })
end end
def sort_key_for_path(path) def sort_key_for_path(path)

View File

@ -76,7 +76,7 @@ module Homebrew
end end
end end
path.write ERB.new(template, nil, ">").result(binding) path.write ERB.new(template, trim_mode: ">").result(binding)
end end
def template def template