From b8448474903134a77bfca904211cc94e565ee6e3 Mon Sep 17 00:00:00 2001 From: Gyorgy Orban Date: Thu, 14 Feb 2019 14:54:07 +0100 Subject: [PATCH] fix action list length check During the previous refactoring this if statement was modified in a wrong way. len() was removed but the condition was not updated. --- libcodechecker/libhandlers/analyze.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcodechecker/libhandlers/analyze.py b/libcodechecker/libhandlers/analyze.py index 05a62d492a..07de14fb07 100644 --- a/libcodechecker/libhandlers/analyze.py +++ b/libcodechecker/libhandlers/analyze.py @@ -524,7 +524,7 @@ def main(args): load_json_or_empty(log_file), skip_handler, os.path.join(args.output_path, 'compiler_info.json')) - if actions == 0: + if not actions: LOG.info("None of the specified build log files contained " "valid compilation commands. No analysis needed...") sys.exit(1)