cmd/tap-info: fix Rubocop warnings.
This commit is contained in:
parent
b9b07fc082
commit
a0c29eb1af
@ -59,7 +59,7 @@ module Homebrew
|
|||||||
puts info
|
puts info
|
||||||
else
|
else
|
||||||
taps.each_with_index do |tap, i|
|
taps.each_with_index do |tap, i|
|
||||||
puts unless i == 0
|
puts unless i.zero?
|
||||||
info = "#{tap}: "
|
info = "#{tap}: "
|
||||||
if tap.installed?
|
if tap.installed?
|
||||||
info += tap.pinned? ? "pinned" : "unpinned"
|
info += tap.pinned? ? "pinned" : "unpinned"
|
||||||
@ -70,7 +70,7 @@ module Homebrew
|
|||||||
if (command_count = tap.command_files.size) > 0
|
if (command_count = tap.command_files.size) > 0
|
||||||
info += ", #{command_count} command#{plural(command_count)}"
|
info += ", #{command_count} command#{plural(command_count)}"
|
||||||
end
|
end
|
||||||
info += ", no formulae/commands" if formula_count + command_count == 0
|
info += ", no formulae/commands" if (formula_count + command_count).zero?
|
||||||
info += "\n#{tap.path} (#{tap.path.abv})"
|
info += "\n#{tap.path} (#{tap.path.abv})"
|
||||||
info += "\nFrom: #{tap.remote.nil? ? "N/A" : tap.remote}"
|
info += "\nFrom: #{tap.remote.nil? ? "N/A" : tap.remote}"
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user