Format relay client Effect refactor

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge committed 2026-06-06 16:33:15 +00:00
1 parent 1c9464e389
commit 8a817fbb26
2 files changed
+3 -2

No files matched your search

-1
View File
@@ -327,5 +327,4 @@ describe("RelayClient", () => {
),
);
});
});
+3 -1
View File
@@ -382,7 +382,9 @@ export const makeCloudflaredRelayClient = Effect.fn("cloudflared.make")(function
) {
const acquired = yield* fileSystem.writeFileString(lockPath, "", { flag: "wx" }).pipe(
Effect.as(true),
Effect.catch((error) => (isAlreadyExists(error) ? Effect.succeed(false) : Effect.fail(error))),
Effect.catch((error) =>
isAlreadyExists(error) ? Effect.succeed(false) : Effect.fail(error),
),
);
if (acquired) return;