Skip to content

Commit

Permalink
MAINT: remove defunc else clause
Browse files Browse the repository at this point in the history
  • Loading branch information
andyfaff committed Aug 14, 2023
1 parent f853d9d commit 566fa96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scipy/optimize/_dcsrch.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ def _iterate(self, stp, f, g, task):
task = b"FG"
return stp, f, g, task

else:
pass
# in the original Fortran this was a location to restore variables
# we don't need to do that because they're attributes.

# If psi(stp) <= 0 and f'(stp) >= 0 for some step, then the
# algorithm enters the second stage.
Expand Down

0 comments on commit 566fa96

Please sign in to comment.