From 98d7c95aa7bf88a5e80dcfae909ebd088b0010a1 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 21 Nov 2022 13:04:48 +0100 Subject: [PATCH] Removed two unrequired `return` statements --- platypush/backend/http/app/routes/auth.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/platypush/backend/http/app/routes/auth.py b/platypush/backend/http/app/routes/auth.py index b59561d06a..cfdc30e7e0 100644 --- a/platypush/backend/http/app/routes/auth.py +++ b/platypush/backend/http/app/routes/auth.py @@ -50,7 +50,6 @@ def auth_endpoint(): except Exception as e: log.warning('Invalid payload passed to the auth endpoint: ' + str(e)) abort(400) - return jsonify({'token': None}) expiry_days = payload.get('expiry_days') expires_at = None @@ -65,4 +64,3 @@ def auth_endpoint(): }) except UserException as e: abort(401, str(e)) - return jsonify({'token': None})