Fix GitHub PR list Effect decoder

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge committed 2026-07-08 16:16:22 +00:00
1 parent baaba34c7b
commit 5429dfb4d5
1 file changed
+1 -2
@@ -1,5 +1,4 @@
import * as Cause from "effect/Cause";
import * as Arr from "effect/Array";
import * as DateTime from "effect/DateTime";
import * as Effect from "effect/Effect";
import * as Exit from "effect/Exit";
@@ -151,7 +150,7 @@ export function decodeGitHubPullRequestListJsonEffect(
Effect.option,
),
);
return Arr.filterMap(decoded, (entry) => entry);
return decoded.flatMap((entry) => (Option.isSome(entry) ? [entry.value] : []));
});
}