Skip to content

Commit

Permalink
Fix a warning from newer versions of flake8. (#469)
Browse files Browse the repository at this point in the history
The parentheses are unnecessary.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Jan 26, 2024
1 parent 274f47a commit 384ed02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ament_clang_tidy/ament_clang_tidy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 384ed02

Please sign in to comment.