diff options
| author | John Hawkinson | 2017-05-14 15:09:01 -0400 |
|---|---|---|
| committer | John Hawkinson | 2017-05-14 15:09:01 -0400 |
| commit | 33d4c95a287060d93200773a52443a1662846165 (patch) | |
| tree | 940483df3624796c7cd8d94be539dfd0744cc6fc /Library | |
| parent | b0d25d83fef80cb655823746450e04820bb0fb31 (diff) | |
| download | brew-33d4c95a287060d93200773a52443a1662846165.tar.bz2 | |
info: use more string interpolation
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 4 |
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? |
