summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGitHub Action <[email protected]>2025-12-17 14:52:05 +0000
committerGitHub Action <[email protected]>2025-12-17 14:52:05 +0000
commitb07a47fc89b6ca662c4f6b536d6f0c0ec5890f89 (patch)
treef365a8c51b22c36cde89f648a93c6423669a08c7
parentc6f84f32d7e7361a0919fc8573b55ff920196f72 (diff)
downloadopencode-b07a47fc89b6ca662c4f6b536d6f0c0ec5890f89.tar.gz
opencode-b07a47fc89b6ca662c4f6b536d6f0c0ec5890f89.zip
chore: format code
-rw-r--r--packages/tauri/src/updater.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/tauri/src/updater.ts b/packages/tauri/src/updater.ts
index 2ecb0f2e0..7207fbe5c 100644
--- a/packages/tauri/src/updater.ts
+++ b/packages/tauri/src/updater.ts
@@ -10,11 +10,12 @@ export async function runUpdater({ alertOnFail }: { alertOnFail: boolean }) {
try {
update = await check()
} catch {
- if(alertOnFail) await message("Failed to check for updates", { title: "Update Check Failed"})
+ if (alertOnFail) await message("Failed to check for updates", { title: "Update Check Failed" })
}
- if (!update){
- if(alertOnFail) await message("You are already using the latest version of OpenCode", { title: "No Update Available"})
+ if (!update) {
+ if (alertOnFail)
+ await message("You are already using the latest version of OpenCode", { title: "No Update Available" })
return
}
@@ -22,12 +23,12 @@ export async function runUpdater({ alertOnFail }: { alertOnFail: boolean }) {
try {
await update.download()
} catch {
- if(alertOnFail) await message("Failed to download update", { title: "Update Failed" })
+ if (alertOnFail) await message("Failed to download update", { title: "Update Failed" })
}
const shouldUpdate = await ask(
`Version ${update.version} of OpenCode has been downloaded, would you like to install it and relaunch?`,
- { title: "Update Downloaded" }
+ { title: "Update Downloaded" },
)
if (!shouldUpdate) return