mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-08-03 09:48:31 +08:00
chore: fix prettier formatting (#1463)
This commit is contained in:
parent
beb753ed72
commit
58a2944bbc
@ -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`
|
// Symlinks whose targets are absent on the PR head (e.g. `.claude/CLAUDE.md`
|
||||||
// -> `../AGENTS.md` when the PR deleted the target) make dereferenced
|
// -> `../AGENTS.md` when the PR deleted the target) make dereferenced
|
||||||
// copies throw ENOENT. Preserve the symlink for the review snapshot instead.
|
// copies throw ENOENT. Preserve the symlink for the review snapshot instead.
|
||||||
if (
|
if (error instanceof Error && "code" in error && error.code === "ENOENT") {
|
||||||
error instanceof Error &&
|
|
||||||
"code" in error &&
|
|
||||||
error.code === "ENOENT"
|
|
||||||
) {
|
|
||||||
cpSync(src, dest, { recursive: true });
|
cpSync(src, dest, { recursive: true });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user