cmd/prune: fix Rubocop warnings.
This commit is contained in:
parent
ae43b79ca2
commit
f9c621304d
@ -47,14 +47,16 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if ObserverPathnameExtension.total.zero?
|
unless ARGV.dry_run?
|
||||||
puts "Nothing pruned" if ARGV.verbose?
|
if ObserverPathnameExtension.total.zero?
|
||||||
else
|
puts "Nothing pruned" if ARGV.verbose?
|
||||||
n, d = ObserverPathnameExtension.counts
|
else
|
||||||
print "Pruned #{n} symbolic links "
|
n, d = ObserverPathnameExtension.counts
|
||||||
print "and #{d} directories " if d > 0
|
print "Pruned #{n} symbolic links "
|
||||||
puts "from #{HOMEBREW_PREFIX}"
|
print "and #{d} directories " if d > 0
|
||||||
end unless ARGV.dry_run?
|
puts "from #{HOMEBREW_PREFIX}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
unlinkapps_prune(:dry_run => ARGV.dry_run?, :quiet => true)
|
unlinkapps_prune(:dry_run => ARGV.dry_run?, :quiet => true)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user