Skip to content

Commit eb428e9

Browse files
committed
♻️ Simplify
1 parent b42d726 commit eb428e9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/spark/parse.gleam

+2-4
Original file line numberDiff line numberDiff line change
@@ -527,10 +527,8 @@ fn series_of(parser: Parser(a), sep: token.TokenType) -> Parser(List(a)) {
527527
let continue = {
528528
use x <- do(parser)
529529
chomp.one_of([
530-
{
531-
use _ <- do(separator(sep))
532-
return(chomp.Continue([x, ..xs]))
533-
},
530+
separator(sep)
531+
|> chomp.replace(chomp.Continue([x, ..xs])),
534532
break_with([x, ..xs]),
535533
])
536534
}

0 commit comments

Comments
 (0)