Skip to content

Commit

Permalink
Remove parentheses from assert statement. (#878)
Browse files Browse the repository at this point in the history
It isn't needed, and will fix a warning on newer flake8.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Jan 26, 2024
1 parent 63d831f commit ce46108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros2topic/ros2topic/verb/bw.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def callback(self, data):
# TODO(yechun1): Subscribing to the msgs and calculate the length may be
# inefficient. Optimize here if a better solution is found.
self.sizes.append(len(data)) # AnyMsg instance
assert(len(self.times) == len(self.sizes))
assert len(self.times) == len(self.sizes)

if len(self.times) > self.window_size:
self.times.pop(0)
Expand Down

0 comments on commit ce46108

Please sign in to comment.