Skip to content

Commit 017a412

Browse files
committed
fix(ci): replace Effect.catchAll with Effect.orElse to satisfy effect lint rules
1 parent 9e0f9b3 commit 017a412

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/lib/src/usecases/auth-gemini-oauth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const cleanupExistingContainers = (
158158
cwd: process.cwd(),
159159
command: "docker",
160160
args: ["rm", "-f", ...ids]
161-
}).pipe(Effect.catchAll(() => Effect.succeed(0)))
161+
}).pipe(Effect.orElse(() => Effect.succeed(0)))
162162
)
163163
}
164164
})
@@ -287,7 +287,7 @@ const fixGeminiAuthPermissions = (hostPath: string, containerPath: string) =>
287287
]
288288
}).pipe(
289289
Effect.tapError((err) => Effect.logWarning(`Failed to fix Gemini auth permissions: ${String(err)}`)),
290-
Effect.catchAll(() => Effect.succeed(0))
290+
Effect.orElse(() => Effect.succeed(0))
291291
)
292292

293293
// QUOTE(ТЗ): "Типо ждал пока мы вставим ссылку"

packages/lib/src/usecases/auth-gemini.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,12 @@ const prepareGeminiCredentialsDir = (
284284
args: ["run", "--rm", "-v", `${accountPath}:/target`, "alpine", "rm", "-rf", "/target/.gemini"]
285285
}),
286286
Effect.asVoid,
287-
Effect.catchAll(() => Effect.void)
287+
Effect.orElse(() => Effect.void)
288288
)
289289

290290
yield* _(
291291
fs.remove(credentialsDir, { recursive: true, force: true }).pipe(
292-
Effect.catchAll(() => removeFallback)
292+
Effect.orElse(() => removeFallback)
293293
)
294294
)
295295
yield* _(fs.makeDirectory(credentialsDir, { recursive: true }))

0 commit comments

Comments
 (0)