fix casklist: wrong refactoring
@@ -19,7 +19,7 @@ __author__ = "rcmdnk"
__copyright__ = "Copyright (c) 2013 rcmdnk"
__credits__ = ["rcmdnk"]
__license__ = "MIT"
-__version__ = "v7.1.0"
+__version__ = "v7.1.1"
__date__ = "6/Feb/2020"
__maintainer__ = "rcmdnk"
__email__ = "rcmdnk@gmail.com"
@@ -2485,8 +2485,7 @@ class BrewFile:
clist = list(casks.values()) + nonapp_casks +\
[x for x_list in casks_noinst.values() for x in x_list] +\
nonapp_casks_noinst
- if not name_cands \
- and [x for x in clist if x[0] == name_cands[0] and x[2]]:
+ if name_cands and [x for x in clist if x[0] == name_cands[0] and x[2]]:
installed = True
else:
for c in [x for x in clist if app in x[5]]:
