From 384ed025dfbcaddfbec1d41b043e0c03b0610a21 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Fri, 26 Jan 2024 08:54:27 -0500 Subject: [PATCH] Fix a warning from newer versions of flake8. (#469) The parentheses are unnecessary. Signed-off-by: Chris Lalancette --- ament_clang_tidy/ament_clang_tidy/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ament_clang_tidy/ament_clang_tidy/main.py b/ament_clang_tidy/ament_clang_tidy/main.py index 913d842a..3f898215 100755 --- a/ament_clang_tidy/ament_clang_tidy/main.py +++ b/ament_clang_tidy/ament_clang_tidy/main.py @@ -154,8 +154,8 @@ def invoke_clang_tidy(compilation_db_path): cmd.append('--system-headers') def is_gtest_source(file_name): - if(file_name == 'gtest_main.cc' or file_name == 'gtest-all.cc' - or file_name == 'gmock_main.cc' or file_name == 'gmock-all.cc'): + if file_name == 'gtest_main.cc' or file_name == 'gtest-all.cc' \ + or file_name == 'gmock_main.cc' or file_name == 'gmock-all.cc': return True return False