From 8d1d6edb0b16259c039ec765d7665f417e62eff4 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Thu, 5 Jan 2023 09:59:35 +0000 Subject: [PATCH] Fix incorrect typing of function in code_style.py Signed-off-by: David Horstmann --- scripts/code_style.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/code_style.py b/scripts/code_style.py index a23d3a5ce5..2c7a77966f 100755 --- a/scripts/code_style.py +++ b/scripts/code_style.py @@ -132,7 +132,7 @@ def check_style_is_correct(src_file_list: List[str]) -> bool: return style_correct -def fix_style_single_pass(src_file_list: List[str]) -> None: +def fix_style_single_pass(src_file_list: List[str]) -> bool: """ Run Uncrustify once over the source files. """ @@ -146,6 +146,7 @@ def fix_style_single_pass(src_file_list: List[str]) -> None: str(result.returncode) + " correcting file " + \ src_file) return False + return True def fix_style(src_file_list: List[str]) -> int: """