info: rubocop

This commit is contained in:
John Hawkinson 2017-04-09 17:14:09 -04:00
parent 971e53c001
commit b0d25d83fe

View File

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