Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

fix(lint): satisfy eslint — if-newline and EOF newline

[email protected]7ec0ad578061
diff --git a/src/components/download-core-dialog.tsx b/src/components/download-core-dialog.tsx
index aea4f213..ebc9b6cd 100644
--- a/src/components/download-core-dialog.tsx
+++ b/src/components/download-core-dialog.tsx
@@ -60,7 +60,8 @@ export function DownloadCoreDialog(props: DownloadCoreDialogProps) {
})
.then((fn) => {
// 竞态防护:组件已卸载而 listen 才 resolve → 立即注销防泄漏
- if (cancelled) fn()
+ if (cancelled)
+ fn()
else unlisten = fn
})
.catch(() => {})
diff --git a/src/config/client.ts b/src/config/client.ts
index 20ad582e..113fe705 100644
--- a/src/config/client.ts
+++ b/src/config/client.ts
@@ -18,4 +18,4 @@ export const queryClient = new QueryClient({
console.error('[QueryClient] unhandled mutation error:', error)
},
}),
-})
\ No newline at end of file
+})
diff --git a/src/hooks/use-dsh-cores.ts b/src/hooks/use-dsh-cores.ts
index e26bb877..ce788b59 100644
--- a/src/hooks/use-dsh-cores.ts
+++ b/src/hooks/use-dsh-cores.ts
@@ -65,7 +65,8 @@ export function useDshCores(): UseDshCoresResult {
})
.then((fn) => {
// 竞态防护:若组件已卸载而 listen 才 resolve,立即注销防泄漏
- if (disposed) fn()
+ if (disposed)
+ fn()
else unlisten = fn
})
.catch(() => {})
diff --git a/src/hooks/use-dsh-profiles.ts b/src/hooks/use-dsh-profiles.ts
index 066f83d2..4ae32d32 100644
--- a/src/hooks/use-dsh-profiles.ts
+++ b/src/hooks/use-dsh-profiles.ts
@@ -52,7 +52,8 @@ export function useDshProfiles(): UseDshProfilesResult {
})
.then((fn) => {
// 竞态防护:若组件已卸载而 listen 才 resolve,立即注销防泄漏
- if (disposed) fn()
+ if (disposed)
+ fn()
else unlisten = fn
})
.catch(() => {})