info: use more string interpolation

This commit is contained in:
John Hawkinson 2017-05-14 15:09:01 -04:00
parent b0d25d83fe
commit 33d4c95a28

View File

@ -124,8 +124,8 @@ module Homebrew
puts Formatter.url(f.homepage) if f.homepage
conflicts = f.conflicts.map do |c|
c.name +
(c.reason ? " (because #{c.reason})" : "")
reason = " (because #{c.reason})" if c.reason
"#{c.name}#{reason}"
end.sort!
msg="Conflicts with: "
puts msg+conflicts*(",\n"+" "*msg.length) unless conflicts.empty?