aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-09-10 10:24:57 +0100
committerMike McQuaid2016-09-11 17:59:00 +0100
commitf9c621304da00c0645950506a4d7eddab70ccbdf (patch)
treedcabffcc716e8c22bd6c42e558655b8c9baad849 /Library/Homebrew
parentae43b79ca2b4e9ad595fbc70854423e214206102 (diff)
downloadbrew-f9c621304da00c0645950506a4d7eddab70ccbdf.tar.bz2
cmd/prune: fix Rubocop warnings.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/prune.rb18
1 files changed, 10 insertions, 8 deletions
diff --git a/Library/Homebrew/cmd/prune.rb b/Library/Homebrew/cmd/prune.rb
index a36c960e7..20c2a3454 100644
--- a/Library/Homebrew/cmd/prune.rb
+++ b/Library/Homebrew/cmd/prune.rb
@@ -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