refactor: reuse undefined effect (#44010)

This commit is contained in:
Kit Langton
2026-08-21 19:17:29 -04:00
committed by GitHub
parent 667c274c7f
commit c4eeefe0f1
28 changed files with 41 additions and 42 deletions
+1 -1
View File
@@ -1426,7 +1426,7 @@ export function write(
output.files,
(file) =>
fs.exists(join(directory, file.path)).pipe(
Effect.flatMap((exists) => (exists ? fs.stat(join(directory, file.path)) : Effect.succeed(undefined))),
Effect.flatMap((exists) => (exists ? fs.stat(join(directory, file.path)) : Effect.undefined)),
Effect.flatMap((info) =>
info?.type === "SymbolicLink"
? new GenerationError({ reason: `Unsafe output path: ${file.path}` })