Skip to content

Commit 3534bd0

Browse files
chore: Refactor unnecessary else / elif when if block has a raise statement (#7333)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
1 parent 90dba4d commit 3534bd0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/api/custom/orders.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ def resend_emails():
109109
{'source': 'data/order'},
110110
"Only placed and completed orders have confirmation",
111111
)
112-
else:
113-
raise ForbiddenError({'source': ''}, "Co-Organizer Access Required")
112+
raise ForbiddenError({'source': ''}, "Co-Organizer Access Required")
114113

115114

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

0 commit comments

Comments
 (0)