From 05fb2a3645cb555f76a25e8fd6f6b6d57f926268 Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Thu, 6 Nov 2025 18:32:20 -0500 Subject: [PATCH] chore(checkpoints): remove redundant normalizedPath redeclarations --- src/services/checkpoints/ShadowCheckpointService.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/services/checkpoints/ShadowCheckpointService.ts b/src/services/checkpoints/ShadowCheckpointService.ts index 41bdad9f36..1d43d2877a 100644 --- a/src/services/checkpoints/ShadowCheckpointService.ts +++ b/src/services/checkpoints/ShadowCheckpointService.ts @@ -251,8 +251,6 @@ export abstract class ShadowCheckpointService extends EventEmitter { !normalizedPath.startsWith(".git/") && normalizedPath !== ".git/HEAD" ) { - // Normalize path first to handle Windows-style backslashes - const normalizedPath = result.path.replace(/\\/g, "/") // Extract repo directory (remove .git/HEAD) const gitDir = path.dirname(normalizedPath) const repoDir = path.dirname(gitDir) @@ -284,8 +282,6 @@ export abstract class ShadowCheckpointService extends EventEmitter { const content = await fs.readFile(gitFilePath, "utf8") if (content.trim().startsWith("gitdir:")) { // This is a worktree - exclude its directory - // Normalize path first to handle Windows-style backslashes - const normalizedPath = result.path.replace(/\\/g, "/") const repoDir = path.dirname(normalizedPath) nestedRepos.add(repoDir) }