We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 585739d commit 679dfd7Copy full SHA for 679dfd7
1 file changed
src/Read.php
@@ -10,7 +10,6 @@
10
use Innmind\Immutable\{
11
Sequence,
12
Attempt,
13
- Maybe,
14
Monoid\Concat,
15
};
16
@@ -44,17 +43,6 @@ public function __invoke(Server $server): Attempt
44
43
->map(static fn($line) => Job::attempt($line->toString())),
45
)
46
->flatMap(self::parse(...));
47
-
48
- /**
49
- * @psalm-suppress NamedArgumentNotAllowed
50
- * @var Maybe<Sequence<Job>>
51
- */
52
- return $jobs->match(
53
- static fn($first, $jobs) => Maybe::all($first, ...$jobs->toList())->map(
54
- static fn(Job ...$jobs) => Sequence::of(...$jobs),
55
- ),
56
- static fn() => Maybe::just(Sequence::of()),
57
- );
58
}
59
60
#[\NoDiscard]
0 commit comments