Skip to content

Commit 4aae969

Browse files
committed
ktlint
1 parent 73eccb3 commit 4aae969

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/AuthTokenGeneratorTest.kt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class AuthTokenGeneratorTest {
3838

3939
val generator = AuthTokenGenerator("foo", credentialsProvider, TEST_SIGNER, clock = clock)
4040

41-
4241
val endpoint = Url { host = Host.parse("foo.bar.us-east-1.baz") }
4342
val token = generator.generateAuthToken(endpoint, "us-east-1", 333.seconds)
4443

@@ -66,12 +65,7 @@ private val TEST_SIGNER = object : AwsSigner {
6665
return AwsSigningResult<HttpRequest>(builder.build(), "signature".encodeToByteArray())
6766
}
6867

69-
override suspend fun signChunk(chunkBody: ByteArray, prevSignature: ByteArray, config: AwsSigningConfig): AwsSigningResult<Unit> {
70-
throw IllegalStateException("signChunk unexpectedly invoked")
71-
}
68+
override suspend fun signChunk(chunkBody: ByteArray, prevSignature: ByteArray, config: AwsSigningConfig): AwsSigningResult<Unit> = throw IllegalStateException("signChunk unexpectedly invoked")
7269

73-
override suspend fun signChunkTrailer(trailingHeaders: Headers, prevSignature: ByteArray, config: AwsSigningConfig): AwsSigningResult<Unit> {
74-
throw IllegalStateException("signChunkTrailer unexpectedly invoked")
75-
}
76-
77-
}
70+
override suspend fun signChunkTrailer(trailingHeaders: Headers, prevSignature: ByteArray, config: AwsSigningConfig): AwsSigningResult<Unit> = throw IllegalStateException("signChunkTrailer unexpectedly invoked")
71+
}

0 commit comments

Comments
 (0)