Unawaited promises
This commit is contained in:
parent
d308d334f8
commit
82316ff290
4 changed files with 5 additions and 5 deletions
|
@ -29,6 +29,6 @@ module.exports = {
|
|||
"@typescript-eslint/no-unsafe-return": "off",
|
||||
"@typescript-eslint/no-confusing-void-expression": "off",
|
||||
"@typescript-eslint/no-misused-promises": "off",
|
||||
"@typescript-eslint/no-floating-promises": "off",
|
||||
// "@typescript-eslint/no-floating-promises": "off",
|
||||
},
|
||||
};
|
||||
|
|
|
@ -35,7 +35,7 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => {
|
|||
);
|
||||
|
||||
const toggleAutoLaunch = () => {
|
||||
autoLauncher.toggleAutoLaunch();
|
||||
void autoLauncher.toggleAutoLaunch();
|
||||
isAutoLaunchEnabled = !isAutoLaunchEnabled;
|
||||
};
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ export const listZipItems = async (zipPath: string): Promise<ZipItem[]> => {
|
|||
}
|
||||
}
|
||||
|
||||
zip.close();
|
||||
await zip.close();
|
||||
|
||||
return entryNames.map((entryName) => [zipPath, entryName]);
|
||||
};
|
||||
|
@ -40,7 +40,7 @@ export const pathOrZipItemSize = async (
|
|||
`An entry with name ${entryName} does not exist in the zip file at ${zipPath}`,
|
||||
);
|
||||
const size = entry.size;
|
||||
zip.close();
|
||||
await zip.close();
|
||||
return size;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -114,7 +114,7 @@ export const makeFileForDataOrPathOrZipItem = async (
|
|||
const [zipPath, entryName] = dataOrPathOrZipItem;
|
||||
const zip = new StreamZip.async({ file: zipPath });
|
||||
await zip.extract(entryName, path);
|
||||
zip.close();
|
||||
await zip.close();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue