Skip to content

Commit

Permalink
chore: Refactor unnecessary else / elif when if block has a `ra…
Browse files Browse the repository at this point in the history
…ise` statement (#7333)

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] authored Oct 7, 2020
1 parent 90dba4d commit 3534bd0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/api/custom/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ def resend_emails():
{'source': 'data/order'},
"Only placed and completed orders have confirmation",
)
else:
raise ForbiddenError({'source': ''}, "Co-Organizer Access Required")
raise ForbiddenError({'source': ''}, "Co-Organizer Access Required")


@order_blueprint.route('/calculate-amount', methods=['POST'])
Expand Down

0 comments on commit 3534bd0

Please sign in to comment.