Skip to content

Commit

Permalink
Merge pull request #3 from zucchero-sintattico/deepsource-autofix-b02…
Browse files Browse the repository at this point in the history
…540fb

refactor: refactor unnecessary `else` / `elif` when `if` block has a `return` statement
  • Loading branch information
Ro0t-set authored Jan 26, 2024
2 parents d6296ee + 83ac5d9 commit 399f9a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions model-gym-ros-env/car_node/car_node/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ def start_position(self):
x, y, t = map_utility.get_start_position(self.map_path)
self.set_raceliens()
return x, y, t
else:
raise Exception("Map path not set")
raise Exception("Map path not set")



Expand Down
3 changes: 1 addition & 2 deletions src/wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def start_position(self):
x, y, t = map_utility.get_start_position(self.map_path)
self.set_raceliens()
return x, y, t
else:
raise Exception("Map path not set")
raise Exception("Map path not set")



Expand Down

0 comments on commit 399f9a0

Please sign in to comment.