Skip to content

Commit

Permalink
♻️ Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
MystPi committed Apr 24, 2024
1 parent b42d726 commit eb428e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/spark/parse.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,8 @@ fn series_of(parser: Parser(a), sep: token.TokenType) -> Parser(List(a)) {
let continue = {
use x <- do(parser)
chomp.one_of([
{
use _ <- do(separator(sep))
return(chomp.Continue([x, ..xs]))
},
separator(sep)
|> chomp.replace(chomp.Continue([x, ..xs])),
break_with([x, ..xs]),
])
}
Expand Down

0 comments on commit eb428e9

Please sign in to comment.