From 9ab577f9d1d08d7997a6f37f5c4454abcae46284 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Thu, 13 Aug 2026 01:03:41 -0700 Subject: [PATCH] fix(workspace-cleanup): satisfy scan queue lint --- .../workspace-cleanup/use-workspace-cleanup-git-evidence.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/components/workspace-cleanup/use-workspace-cleanup-git-evidence.ts b/src/renderer/src/components/workspace-cleanup/use-workspace-cleanup-git-evidence.ts index 8ca7e538f05..31bbbe57e2f 100644 --- a/src/renderer/src/components/workspace-cleanup/use-workspace-cleanup-git-evidence.ts +++ b/src/renderer/src/components/workspace-cleanup/use-workspace-cleanup-git-evidence.ts @@ -74,7 +74,7 @@ export function useWorkspaceCleanupGitEvidence({ const queueIndex = queueRef.current.findIndex( (worktreeId) => !activeRequestWorktreeIdsRef.current.has(worktreeId) ) - if (queueIndex < 0) { + if (queueIndex === -1) { break } const [worktreeId] = queueRef.current.splice(queueIndex, 1)