From 475de74d9b9c0329fe2f78bcc10aa60485997cc9 Mon Sep 17 00:00:00 2001 From: Josselin Feist Date: Mon, 8 Aug 2022 16:28:43 +0200 Subject: [PATCH] Minor --- slither/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/__main__.py b/slither/__main__.py index f96ce2b52..b27c8ae75 100644 --- a/slither/__main__.py +++ b/slither/__main__.py @@ -887,7 +887,7 @@ def main_impl( result["impact"] in ["Low", "Medium", "High"] for result in results_detectors ) elif args.fail_pedantic: - fail_on_detection = bool(len(results_detectors)) + fail_on_detection = bool(results_detectors) else: fail_on_detection = False