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:
parent
d305784c37
commit
f93fd970d5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user