Skip to content
Snippets Groups Projects
Commit 46e051b1 authored by Markus Reiter's avatar Markus Reiter
Browse files

Simplify cache output.

parent b54c3d61
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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