Conform to no-floating-promises (#1725)

This commit is contained in:
Michael Telatynski
2024-06-12 17:17:24 +01:00
committed by GitHub
parent 5c23a23f39
commit 2018a51469
8 changed files with 22 additions and 20 deletions
+2 -2
View File
@@ -217,11 +217,11 @@ ipcMain.on("ipcCall", async function (_ev: IpcMainEvent, payload) {
label: r.initial,
backgroundColor: defaultColors[total % defaultColors.length],
click: (): void => {
global.mainWindow?.loadURL(`vector://vector/webapp/#/room/${r.roomId}`);
void global.mainWindow?.loadURL(`vector://vector/webapp/#/room/${r.roomId}`);
},
});
if (r.avatarUrl) {
fetch(r.avatarUrl)
void fetch(r.avatarUrl)
.then((resp) => {
if (!resp.ok) return;
return resp.arrayBuffer();