Speed up checking if cask is installed in search

Switched from loading a cask and checking the installed? variable to
checking for it in the caskroom directory like search does outside cask
This commit is contained in:
Nath Tumlin 2017-03-11 15:20:24 -08:00
parent d305784c37
commit f93fd970d5

View File

@ -37,8 +37,7 @@ def odebug(title, *sput)
end
def highlight_installed(token)
cask = Hbc.load(token)
if cask.installed?
if (Hbc.caskroom/token).directory?
token = pretty_installed token
end
token