From 75778463697988a718152b0046fb2d4c6e957db0 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 13 Mar 2026 13:23:08 -0700 Subject: [PATCH] Fix lint warnings: redundant type and floating promises Co-Authored-By: Claude Opus 4.6 --- apps/yaak-proxy/hooks/useRpcQueryWithEvent.ts | 2 +- crates/yaak-git/index.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/yaak-proxy/hooks/useRpcQueryWithEvent.ts b/apps/yaak-proxy/hooks/useRpcQueryWithEvent.ts index a38a0065..10d41430 100644 --- a/apps/yaak-proxy/hooks/useRpcQueryWithEvent.ts +++ b/apps/yaak-proxy/hooks/useRpcQueryWithEvent.ts @@ -10,7 +10,7 @@ import { useRpcQuery } from "./useRpcQuery"; */ export function useRpcQueryWithEvent< K extends keyof RpcSchema, - E extends keyof RpcEventSchema & string, + E extends keyof RpcEventSchema, >(cmd: K, payload: Req, event: E, opts?: Omit>, "queryKey" | "queryFn">) { const queryClient = useQueryClient(); const query = useRpcQuery(cmd, payload, opts); diff --git a/crates/yaak-git/index.ts b/crates/yaak-git/index.ts index 6c179a50..418def3e 100644 --- a/crates/yaak-git/index.ts +++ b/crates/yaak-git/index.ts @@ -196,7 +196,7 @@ export const gitMutations = (dir: string, callbacks: GitCallbacks) => { } if (result.type === "uncommitted_changes") { - callbacks + void callbacks .promptUncommittedChanges() .then(async (strategy) => { if (strategy === "cancel") return; @@ -205,13 +205,13 @@ export const gitMutations = (dir: string, callbacks: GitCallbacks) => { return invoke("cmd_git_pull", { dir }); }) .then(async () => { - onSuccess(); + await onSuccess(); await callbacks.forceSync(); }, handleError); } if (result.type === "diverged") { - callbacks + void callbacks .promptDiverged(result) .then((strategy) => { if (strategy === "cancel") return; @@ -231,7 +231,7 @@ export const gitMutations = (dir: string, callbacks: GitCallbacks) => { }); }) .then(async () => { - onSuccess(); + await onSuccess(); await callbacks.forceSync(); }, handleError); }