From ee8ab3da4a6dfe9f19d7f8260710130d97a812d3 Mon Sep 17 00:00:00 2001 From: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com> Date: Thu, 4 Jan 2024 18:38:49 +0530 Subject: [PATCH] chore: fix issues --- frappe/push_notification.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frappe/push_notification.py b/frappe/push_notification.py index a63a11f4d7..fe115b81d5 100644 --- a/frappe/push_notification.py +++ b/frappe/push_notification.py @@ -183,12 +183,7 @@ class PushNotification: :return: tuple[str, str] The API key and secret. """ notification_settings = frappe.get_doc("Push Notification Settings") - if ( - notification_settings.api_key != "" - and notification_settings.api_secret != "" - and notification_settings.api_key is not None - and notification_settings.api_secret is not None - ): + if notification_settings.api_key and notification_settings.api_secret: return notification_settings.api_key, notification_settings.api_secret else: # Generate new credentials