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:
Chris Hill-Scott
2018-06-18 12:52:12 +01:00
committed by Leo Hemsted
parent c2dbc1934f
commit 7397e808a8

View File

@@ -232,6 +232,12 @@ def delivery_status_callback(service_id):
bearer_token=form.bearer_token.data,
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 theres
# nothing for us to do here
pass
return redirect(url_for(back_link, service_id=service_id))
return render_template(