Fix lint warnings and turn warnings back on (#7409)

Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
Aaron Raimist 2018-10-05 10:41:45 -05:00
parent 401c85ad5b
commit d035efb14e
No known key found for this signature in database
GPG Key ID: 37419210002890EF
3 changed files with 6 additions and 10 deletions

View File

@ -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));
}
},
);
})
});
}

View File

@ -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() {

View File

@ -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<string> {