Add no-misused/floating-promises lint rule

This commit is contained in:
Fedor Indutny
2022-12-21 10:41:48 -08:00
committed by GitHub
parent 1a68c3db62
commit ed271d92ea
150 changed files with 1296 additions and 991 deletions

View File

@@ -1130,7 +1130,7 @@ export function initialize({
});
if (useWebSocket) {
socketManager.authenticate({ username, password });
void socketManager.authenticate({ username, password });
}
const { directoryUrl, directoryMRENCLAVE } = directoryConfig;
@@ -1368,7 +1368,7 @@ export function initialize({
function checkSockets(): void {
// Intentionally not awaiting
socketManager.check();
void socketManager.check();
}
async function onOnline(): Promise<void> {
@@ -1392,7 +1392,7 @@ export function initialize({
}
function onHasStoriesDisabledChange(newValue: boolean): void {
socketManager.onHasStoriesDisabledChange(newValue);
void socketManager.onHasStoriesDisabledChange(newValue);
}
async function getConfig() {