diff options
| author | 2026-01-14 12:01:45 +0800 | |
|---|---|---|
| committer | 2026-01-14 12:01:45 +0800 | |
| commit | ce4f190c4cc33c5ffdae7c0d93df2232e2257179 (patch) | |
| tree | c0282bf1805dee713cdc15fb843e3ac880015118 | |
| parent | 90a4cdf980b801570c001cd5c75b8aad46bcfb47 (diff) | |
| download | DropOut-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.ts | 6 |
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); } |