Refactor if statement

This commit is contained in:
Rebecca Law
2017-06-05 12:13:40 +01:00
parent f40e81bc3a
commit da77737c16

View File

@@ -270,7 +270,7 @@ def service_set_sms_sender(service_id):
form = ServiceSmsSender()
if form.validate_on_submit():
set_inbound_sms = request.args.get('set_inbound_sms', False)
if set_inbound_sms == 'True':
if set_inbound_sms:
permissions = current_service['permissions']
if 'inbound_sms' in permissions:
permissions.remove('inbound_sms')