From d035efb14eeffa34596bac5e7930cfede7982ded Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Fri, 5 Oct 2018 10:41:45 -0500 Subject: [PATCH] Fix lint warnings and turn warnings back on (#7409) Signed-off-by: Aaron Raimist --- src/vector/getconfig.js | 4 ++-- src/vector/index.js | 8 ++------ src/vector/platform/WebPlatform.js | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/vector/getconfig.js b/src/vector/getconfig.js index 868840c6ac3..239ba8067a0 100644 --- a/src/vector/getconfig.js +++ b/src/vector/getconfig.js @@ -59,7 +59,7 @@ function getConfig(configJsonFilename) { // which breaks if there's no config.json and we're // loading from the filesystem (see above). resolve(JSON.parse(body)); - } + }, ); - }) + }); } diff --git a/src/vector/index.js b/src/vector/index.js index fc64bbf8292..4da035d9b54 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -60,10 +60,6 @@ import CallHandler from 'matrix-react-sdk/lib/CallHandler'; import {getVectorConfig} from './getconfig'; -// Disable warnings for now: we use deprecated bluebird functions -// and need to migrate, but they spam the console with warnings. -Promise.config({warnings: false}); - let lastLocationHashSet = null; function initRageshake() { @@ -205,9 +201,9 @@ function getConfig(configJsonFilename) { // which breaks if there's no config.json and we're // loading from the filesystem (see above). resolve(JSON.parse(body)); - } + }, ); - }) + }); } function onTokenLoginCompleted() { diff --git a/src/vector/platform/WebPlatform.js b/src/vector/platform/WebPlatform.js index 1cd440207e9..cfe5134662e 100644 --- a/src/vector/platform/WebPlatform.js +++ b/src/vector/platform/WebPlatform.js @@ -72,7 +72,7 @@ export default class WebPlatform extends VectorBasePlatform { global.Notification.requestPermission((result) => { resolve(result); }); - }) + }); } displayNotification(title: string, msg: string, avatarUrl: string, room: Object) { @@ -127,7 +127,7 @@ export default class WebPlatform extends VectorBasePlatform { resolve(ver); }, ); - }) + }); } getAppVersion(): Promise {