aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2026-01-14 12:01:45 +0800
committerGitHub <noreply@github.com>2026-01-14 12:01:45 +0800
commitce4f190c4cc33c5ffdae7c0d93df2232e2257179 (patch)
treec0282bf1805dee713cdc15fb843e3ac880015118
parent90a4cdf980b801570c001cd5c75b8aad46bcfb47 (diff)
downloadDropOut-ce4f190c4cc33c5ffdae7c0d93df2232e2257179.tar.gz
DropOut-ce4f190c4cc33c5ffdae7c0d93df2232e2257179.zip
fix: avoid any/object process
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
-rw-r--r--ui/src/stores/settings.svelte.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/src/stores/settings.svelte.ts b/ui/src/stores/settings.svelte.ts
index 9bc122e..989172c 100644
--- a/ui/src/stores/settings.svelte.ts
+++ b/ui/src/stores/settings.svelte.ts
@@ -15,10 +15,8 @@ export class SettingsState {
async loadSettings() {
try {
- const result = await invoke("get_settings");
- if (result && typeof result === "object") {
- this.settings = result as LauncherConfig;
- }
+ const result = await invoke<LauncherConfig>("get_settings");
+ this.settings = result;
} catch (e) {
console.error("Failed to load settings:", e);
}