info: use more string interpolation
This commit is contained in:
parent
b0d25d83fe
commit
33d4c95a28
@ -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?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user