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"
end
message = <<~EOS.chomp!
message = <<~EOS
The following #{flag_text}:
#{flags.join(", ")}
#{require_text} building tools, but none are installed.
#{DevelopmentTools.installation_instructions}
EOS
message << <<~EOS.chomp! if bottled
\nAlternatively, remove the #{flag_text} to attempt bottle installation.
message << <<~EOS if bottled
Alternatively, remove the #{flag_text} to attempt bottle installation.
EOS
super message