Skip to content

Commit

Permalink
chore: scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
MoeQuadrat committed Aug 21, 2024
1 parent c6e7de1 commit 51f52fd
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ package client
import cats.implicits._
import smithy4s.codecs.PayloadError
import smithy4s.http._
import smithy4s.{Blob, Endpoint, Hints, Schema}
import smithy4s.{ Blob, Endpoint, Hints, Schema }

import java.net.URLEncoder
import java.nio.charset.StandardCharsets
import scala.concurrent.{ExecutionContext, Future}
import scala.concurrent.{ ExecutionContext, Future }

private[smithy4play] class SmithyPlayClientEndpoint[Op[_, _, _, _, _], I, E, O, SI, SO](
endpoint: Endpoint[Op, I, E, O, SI, SO],
Expand Down Expand Up @@ -99,7 +99,10 @@ private[smithy4play] class SmithyPlayClientEndpoint[Op[_, _, _, _, _], I, E, O,

def buildPath(metadata: Metadata): String =
baseUri + httpEndpoint.path(input).mkString("/") + metadata.queryFlattened
.map(s => URLEncoder.encode(s._1, StandardCharsets.UTF_8.name()) + "=" + URLEncoder.encode(s._2, StandardCharsets.UTF_8.name()))
.map(s =>
URLEncoder.encode(s._1, StandardCharsets.UTF_8.name()) + "=" + URLEncoder
.encode(s._2, StandardCharsets.UTF_8.name())
)
.mkString("?", "&", "")

}

0 comments on commit 51f52fd

Please sign in to comment.