Skip to content

Commit

Permalink
Merge pull request #220 from udzin/quotes
Browse files Browse the repository at this point in the history
Removed unnecessary string quotes on multipart request
  • Loading branch information
augustjune authored Nov 19, 2020
2 parents c8fafa7 + 677bdee commit 87f5505
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ private[api] class Http4sTelegramClient[F[_]: Sync: Logger](token: String, clien
.map(
_.toIterable
.filterNot(kv => kv._2.isNull || kv._2.isObject)
.map { case (k, j) => k -> j.toString }
.map {
case (k, j) if j.isString => k -> j.asString.get
case (k, j) => k -> j.toString
}
.toMap
)
.getOrElse(Map.empty)
Expand Down

0 comments on commit 87f5505

Please sign in to comment.