Skip to content

Commit

Permalink
Small refactoring for scala.collection.breakOut (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
cchantep authored and marcospereira committed Sep 2, 2017
1 parent 872c243 commit fdb81e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ private[ahc] object FormUrlEncodedParser {
*/
def parseNotPreservingOrder(data: String, encoding: String = "utf-8"): Map[String, Seq[String]] = {
// Generate the pairs of values from the string.
parseToPairs(data, encoding).groupBy(_._1).map(param => param._1 -> param._2.map(_._2)).toMap
parseToPairs(data, encoding).groupBy(_._1).
map(param => param._1 -> param._2.map(_._2))(scala.collection.breakOut)
}

/**
Expand Down

0 comments on commit fdb81e7

Please sign in to comment.