From e08cfff6134ea93ace2294bb923f12fc9e1cc37a Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 21 Jan 2021 21:41:58 +0900 Subject: [PATCH] fix lint --- src/client/init.ts | 3 +-- src/client/sw/compose-notification.ts | 6 +++--- src/client/sw/sw.ts | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/client/init.ts b/src/client/init.ts index 8fcabea119..7d83ae58e1 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -211,8 +211,7 @@ fetchInstance().then(() => { if (subscription) subscription.unsubscribe(); }); }); - - }; + } }); stream.init($i); diff --git a/src/client/sw/compose-notification.ts b/src/client/sw/compose-notification.ts index 101cb3bcdb..c336b8994d 100644 --- a/src/client/sw/compose-notification.ts +++ b/src/client/sw/compose-notification.ts @@ -3,9 +3,9 @@ import getUserName from '../../misc/get-user-name'; export default async function(type, data, i18n): Promise<[string, NotificationOptions] | null> { if (!i18n) { - console.log('no i18n') - return null - }; + console.log('no i18n'); + return null; + } switch (type) { case 'driveFileCreated': // TODO (Server Side) diff --git a/src/client/sw/sw.ts b/src/client/sw/sw.ts index f429a37eb3..89860f07c0 100644 --- a/src/client/sw/sw.ts +++ b/src/client/sw/sw.ts @@ -83,7 +83,6 @@ self.addEventListener('message', ev => { if (otype === 'object') { if (ev.data.msg === 'initialize') { - console.log('initialize') i = ev.data.$i; i18n = new I18n(ev.data.locale); }