summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/desktop/src/index.tsx2
-rw-r--r--packages/desktop/src/updater.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx
index 281b613d6..b3dbebd04 100644
--- a/packages/desktop/src/index.tsx
+++ b/packages/desktop/src/index.tsx
@@ -83,7 +83,7 @@ const platform: Platform = {
update: async () => {
if (!UPDATER_ENABLED || !update) return
- if(ostype() === "windows") await invoke("kill_sidecar")
+ if (ostype() === "windows") await invoke("kill_sidecar")
await update.install()
},
diff --git a/packages/desktop/src/updater.ts b/packages/desktop/src/updater.ts
index 2c58322a4..4753ee663 100644
--- a/packages/desktop/src/updater.ts
+++ b/packages/desktop/src/updater.ts
@@ -35,7 +35,7 @@ export async function runUpdater({ alertOnFail }: { alertOnFail: boolean }) {
if (!shouldUpdate) return
try {
- if(ostype() === "windows") await invoke("kill_sidecar")
+ if (ostype() === "windows") await invoke("kill_sidecar")
await update.install()
} catch {
await message("Failed to install update", { title: "Update Failed" })