Skip to content
Snippets Groups Projects
Commit f9c62130 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

cmd/prune: fix Rubocop warnings.

parent ae43b79c
No related branches found
No related tags found
No related merge requests found
......@@ -47,14 +47,16 @@ module Homebrew
end
end
if ObserverPathnameExtension.total.zero?
puts "Nothing pruned" if ARGV.verbose?
else
n, d = ObserverPathnameExtension.counts
print "Pruned #{n} symbolic links "
print "and #{d} directories " if d > 0
puts "from #{HOMEBREW_PREFIX}"
end unless ARGV.dry_run?
unless ARGV.dry_run?
if ObserverPathnameExtension.total.zero?
puts "Nothing pruned" if ARGV.verbose?
else
n, d = ObserverPathnameExtension.counts
print "Pruned #{n} symbolic links "
print "and #{d} directories " if d > 0
puts "from #{HOMEBREW_PREFIX}"
end
end
unlinkapps_prune(:dry_run => ARGV.dry_run?, :quiet => true)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment