Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/github/operations/restore-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ function snapshotSensitivePath(src: string, dest: string): void {
// Symlinks whose targets are absent on the PR head (e.g. `.claude/CLAUDE.md`
// -> `../AGENTS.md` when the PR deleted the target) make dereferenced
// copies throw ENOENT. Preserve the symlink for the review snapshot instead.
if (
error instanceof Error &&
"code" in error &&
error.code === "ENOENT"
) {
if (error instanceof Error && "code" in error && error.code === "ENOENT") {
cpSync(src, dest, { recursive: true });
return;
}
Expand Down
Loading