Skip to content

Commit 6525e09

Browse files
committed
ktlint
1 parent 1cdec31 commit 6525e09

File tree

1 file changed

+7
-3
lines changed
  • runtime/auth/aws-signing-common/common/src/aws/smithy/kotlin/runtime/auth/awssigning

1 file changed

+7
-3
lines changed

runtime/auth/aws-signing-common/common/src/aws/smithy/kotlin/runtime/auth/awssigning/AuthTokenGenerator.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ public class AuthTokenGenerator(
2929
private fun Url.trimScheme(): String = toString().removePrefix(scheme.protocolName).removePrefix("://")
3030

3131
public suspend fun generateAuthToken(endpoint: Url, region: String, expiration: Duration): String {
32-
val req = HttpRequest(HttpMethod.GET, endpoint, headers = Headers {
33-
append("Host", endpoint.hostAndPort)
34-
})
32+
val req = HttpRequest(
33+
HttpMethod.GET,
34+
endpoint,
35+
headers = Headers {
36+
append("Host", endpoint.hostAndPort)
37+
},
38+
)
3539

3640
val config = AwsSigningConfig {
3741
credentials = credentialsProvider.resolve()

0 commit comments

Comments
 (0)