Skip to content

Commit

Permalink
Remove unnecessary parentheses around if statements. (#140)
Browse files Browse the repository at this point in the history
This will make newer flake8 happy.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
  • Loading branch information
clalancette committed Jan 26, 2024
1 parent 68068a1 commit 055db41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rqt_reconfigure/param_editors.py
Expand Up @@ -201,7 +201,7 @@ def __init__(self, *args, **kwargs):
'editor_number.ui')
loadUi(ui_int, self)

if(len(self.descriptor.integer_range) > 0):
if len(self.descriptor.integer_range) > 0:
# Set ranges
self._min = int(self.descriptor.integer_range[0].from_value)
self._max = int(self.descriptor.integer_range[0].to_value)
Expand Down Expand Up @@ -310,7 +310,7 @@ def __init__(self, *args, **kwargs):
)
loadUi(ui_num, self)

if(len(self.descriptor.floating_point_range) > 0):
if len(self.descriptor.floating_point_range) > 0:
# Handle unbounded doubles nicely
self._min = float(self.descriptor.floating_point_range[0].from_value)
self._min_val_label.setText(str(self._min))
Expand Down

0 comments on commit 055db41

Please sign in to comment.