Showing the changes to apps/server/src/sourceControl (1 of 1 file). Show all
Unified · Split
| @@ -1,5 +1,4 @@ | |||
| 1 | import * as Cause from "effect/Cause"; | 1 | import * as Cause from "effect/Cause"; |
| 2 | import * as Arr from "effect/Array"; | ||
| 3 | import * as DateTime from "effect/DateTime"; | 2 | import * as DateTime from "effect/DateTime"; |
| 4 | import * as Effect from "effect/Effect"; | 3 | import * as Effect from "effect/Effect"; |
| 5 | import * as Exit from "effect/Exit"; | 4 | import * as Exit from "effect/Exit"; |
| @@ -151,7 +150,7 @@ export function decodeGitHubPullRequestListJsonEffect( · 145 unmodified lines | |||
| 151 | Effect.option, | 150 | Effect.option, |
| 152 | ), | 151 | ), |
| 153 | ); | 152 | ); |
| 154 | return Arr.filterMap(decoded, (entry) => entry); | 153 | return decoded.flatMap((entry) => (Option.isSome(entry) ? [entry.value] : [])); |
| 155 | }); | 154 | }); |
| 156 | } | 155 | } |
| 157 | 156 | ||