Replace if ... else ... with simpler statement

This commit is contained in:
JoeLametta
2019-01-17 10:42:48 +00:00
parent e7bfc34c0e
commit 6bb585e1a5
2 changed files with 2 additions and 8 deletions

View File

@@ -598,10 +598,7 @@ class AnalyzeTask(ctask.PopenTask):
shutil.rmtree(self.cwd)
output = "".join(self._output)
m = _OK_RE.search(output)
if m:
self.defeatsCache = True
else:
self.defeatsCache = False
self.defeatsCache = bool(m)
def failed(self):
# cdparanoia exits with return code 1 if it can't determine