mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Refactor if statement to be positive
This commit is contained in:
@@ -39,9 +39,9 @@ def validate_created_by(service, created_by_id):
|
||||
|
||||
|
||||
def create_one_off_reference(template_type):
|
||||
if template_type != LETTER_TYPE:
|
||||
return None
|
||||
return create_random_identifier()
|
||||
if template_type == LETTER_TYPE:
|
||||
return create_random_identifier()
|
||||
return None
|
||||
|
||||
|
||||
def send_one_off_notification(service_id, post_data):
|
||||
|
||||
Reference in New Issue
Block a user