From d4a630902d8d250b67fcd0ce2b49240786b40368 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 4 Apr 2020 08:46:54 +0900 Subject: refactor: Use === --- src/services/push-notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/services') diff --git a/src/services/push-notification.ts b/src/services/push-notification.ts index fa7cacfdc4..f0d9c4e22c 100644 --- a/src/services/push-notification.ts +++ b/src/services/push-notification.ts @@ -36,7 +36,7 @@ export default async function(userId: string, type: string, body?: any) { //swLogger.info(err.headers); //swLogger.info(err.body); - if (err.statusCode == 410) { + if (err.statusCode === 410) { SwSubscriptions.delete({ userId: userId, endpoint: subscription.endpoint, -- cgit v1.2.3-freya