exceptions.rb: remove unnecessary chomps

remove `chomp!` from method 'initialize' in class 'BuildFlagsError'
This commit is contained in:
Maxim Belkin 2019-02-11 05:27:22 -06:00 committed by GitHub
parent db7997e1a0
commit c44c8da5e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -463,15 +463,15 @@ class BuildFlagsError < RuntimeError
require_text = "requires" require_text = "requires"
end end
message = <<~EOS.chomp! message = <<~EOS
The following #{flag_text}: The following #{flag_text}:
#{flags.join(", ")} #{flags.join(", ")}
#{require_text} building tools, but none are installed. #{require_text} building tools, but none are installed.
#{DevelopmentTools.installation_instructions} #{DevelopmentTools.installation_instructions}
EOS EOS
message << <<~EOS.chomp! if bottled message << <<~EOS if bottled
\nAlternatively, remove the #{flag_text} to attempt bottle installation. Alternatively, remove the #{flag_text} to attempt bottle installation.
EOS EOS
super message super message