Skip to content

Commit 8ea7f78

Browse files
committed
autoupdater: Add const assertion.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 493ae06 commit 8ea7f78

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/main/autoupdater.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ export async function appUpdater(updateFromMenu = false): Promise<void> {
4040

4141
autoUpdater.allowPrerelease = isBetaUpdate;
4242

43-
const eventsListenerRemove = ["update-available", "update-not-available"];
43+
const eventsListenerRemove = [
44+
"update-available",
45+
"update-not-available",
46+
] as const;
4447
autoUpdater.on("update-available", async (info: UpdateInfo) => {
4548
if (updateFromMenu) {
4649
updateAvailable = true;

0 commit comments

Comments
 (0)