diff options
| author | Markus Reiter | 2017-02-04 21:53:02 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-02-05 06:48:23 +0100 |
| commit | 46e051b1c2ed44ce4db151da9a09a1870c485334 (patch) | |
| tree | a400de73be28c9813b8ee5cb5e86b4c3d1d0f42b | |
| parent | b54c3d618e8c2704eb9930776c883f0052ecc9db (diff) | |
| download | brew-46e051b1c2ed44ce4db151da9a09a1870c485334.tar.bz2 | |
Simplify cache output.
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/doctor.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb index 7b777abbb..acf584bfd 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb @@ -106,13 +106,11 @@ module Hbc def self.render_cached_downloads cleanup = CLI::Cleanup.default - files = cleanup.cache_files - count = files.count + count = cleanup.cache_files.count size = cleanup.disk_cleanup_size - size_msg = "#{number_readable(count)} files, #{disk_usage_readable(size)}" - warn_msg = error_string('warning: run "brew cask cleanup"') - size_msg << " #{warn_msg}" if count > 0 - [Hbc.cache, size_msg] + msg = user_tilde(Hbc.cache.to_s) + msg << " (#{number_readable(count)} files, #{disk_usage_readable(size)})" unless count.zero? + msg end def self.help |
