Format relay client Effect refactor
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
1c9464e389
commit
8a817fbb26
2 files changed
+3
-2
No files matched your search
@@ -327,5 +327,4 @@ describe("RelayClient", () => {
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
});
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user