mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 20:18:25 -04:00
Make expected behaviour clear in else case
It feels a bit slippery having an `if`/`elif` with no else; I think that adding this comment makes the code clearer.
This commit is contained in:
committed by
Leo Hemsted
parent
c2dbc1934f
commit
7397e808a8
@@ -232,6 +232,12 @@ def delivery_status_callback(service_id):
|
|||||||
bearer_token=form.bearer_token.data,
|
bearer_token=form.bearer_token.data,
|
||||||
user_id=current_user.id
|
user_id=current_user.id
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
# If no callback is set up and the user chooses to continue
|
||||||
|
# having no callback (ie both fields empty) then there’s
|
||||||
|
# nothing for us to do here
|
||||||
|
pass
|
||||||
|
|
||||||
return redirect(url_for(back_link, service_id=service_id))
|
return redirect(url_for(back_link, service_id=service_id))
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
|
|||||||
Reference in New Issue
Block a user