mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
Got rid of an if
This commit is contained in:
@@ -604,9 +604,8 @@ def is_service_name_unique():
|
|||||||
|
|
||||||
name_exists = Service.query.filter_by(name=name).first()
|
name_exists = Service.query.filter_by(name=name).first()
|
||||||
email_from_exists = Service.query.filter_by(email_from=email_from).first()
|
email_from_exists = Service.query.filter_by(email_from=email_from).first()
|
||||||
if name_exists or email_from_exists:
|
result = not (name_exists or email_from_exists)
|
||||||
return jsonify(result=False), 200
|
return jsonify(result=result), 200
|
||||||
return jsonify(result=True), 200
|
|
||||||
|
|
||||||
|
|
||||||
def check_request_args(request):
|
def check_request_args(request):
|
||||||
|
|||||||
Reference in New Issue
Block a user