style: add no-misused-promises rule (#3547)

Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
LongYinan
2023-08-04 16:08:10 +08:00
committed by GitHub
parent f8e49ee3be
commit 5795020403
19 changed files with 130 additions and 74 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export function getGoogleOauthCode() {
logger.error('Failed to open external url', e);
reject(e);
});
const handleOpenUrl = async (_: any, url: string) => {
const handleOpenUrl = (_: any, url: string) => {
const mainWindow = BrowserWindow.getAllWindows().find(
w => !w.isDestroyed()
);