Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
Co-authored-by: jhdcs <48914066+jhdcs@users.noreply.github.com>
Signed-off-by: Brian Chen <brian.chen@openrobotics.org>
  • Loading branch information
ihasdapie and jhdcs committed Aug 10, 2022
1 parent 8d846c3 commit d2eb97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros2bag/ros2bag/verb/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def main(self, *, args): # noqa: D102
if (args.all and (args.topics or args.regex)) or (args.topics and args.regex):
return print_error('Must specify only one option out of topics, --regex or --all')
# one out of "all", "topics" and "regex" must be true
if not(args.all or (args.topics and len(args.topics) > 0) or (args.regex) or \
if not(args.all or (args.topics and len(args.topics) > 0) or (args.regex) or
(args.services and len(args.services) > 0)):
return print_error(
'Invalid choice: Must specify topic(s), --services, --regex or --all')
Expand Down

0 comments on commit d2eb97f

Please sign in to comment.