From 78d566b216c593932bf42758727e4488b3870171 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Thu, 5 Jan 2023 10:02:09 +0000 Subject: [PATCH] Fix pylint warnings about comparison to True Signed-off-by: David Horstmann --- scripts/code_style.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/code_style.py b/scripts/code_style.py index 2c7a77966f..aae3e24925 100755 --- a/scripts/code_style.py +++ b/scripts/code_style.py @@ -152,9 +152,9 @@ def fix_style(src_file_list: List[str]) -> int: """ Fix the code style. This takes 2 passes of Uncrustify. """ - if fix_style_single_pass(src_file_list) != True: + if not fix_style_single_pass(src_file_list): return 1 - if fix_style_single_pass(src_file_list) != True: + if not fix_style_single_pass(src_file_list): return 1 # Guard against future changes that cause the codebase to require