Code tidy up as be @imdad comments.

This commit is contained in:
Martyn Inglis
2017-05-16 12:55:12 +01:00
parent fd542024a3
commit 1dc3970595
2 changed files with 3 additions and 7 deletions

View File

@@ -67,10 +67,7 @@ def post_notification(notification_type):
else:
current_app.logger.info("POST simulated notification for id: {}".format(notification.id))
if notification_type == SMS_TYPE:
sms_sender = (authenticated_service.sms_sender
if authenticated_service.sms_sender
else current_app.config.get('FROM_NUMBER')
)
sms_sender = authenticated_service.sms_sender or current_app.config.get('FROM_NUMBER')
resp = create_post_sms_response_from_notification(notification=notification,
body=str(template_with_content),
from_number=sms_sender,