aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/info.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index 60c8a28d2..613677761 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -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?