Skip to content

Commit

Permalink
Use groupMap
Browse files Browse the repository at this point in the history
  • Loading branch information
dhpiggott committed Aug 14, 2023
1 parent 8c081b6 commit e28d74d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,15 @@ private[http] class UrlFormDataDecoderSchemaVisitor(
) =>
index -> formData
}
.groupBy { case (index, _) =>
index
}
.groupMap { case (index, _) => index } { case (_, value) => value }
.toVector
.sortBy { case (index, _) =>
index
}
.map { case (index, indicesAndValues) =>
.map { case (index, values) =>
UrlFormCursor(
history,
indicesAndValues.map { case (_, value) => value }
values
)
.down(PayloadPath.Segment.Index(index))
}
Expand Down

0 comments on commit e28d74d

Please sign in to comment.