From f9c621304da00c0645950506a4d7eddab70ccbdf Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 10 Sep 2016 10:24:57 +0100 Subject: [PATCH] cmd/prune: fix Rubocop warnings. --- Library/Homebrew/cmd/prune.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Library/Homebrew/cmd/prune.rb b/Library/Homebrew/cmd/prune.rb index a36c960e7e..20c2a34549 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