Skip to content

Commit acec62e

Browse files
committed
lint
1 parent 0d31702 commit acec62e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/config/AwsSdkClientConfig.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55

66
package aws.sdk.kotlin.runtime.config
77

8-
import aws.smithy.kotlin.runtime.client.SdkClientConfig
9-
108
import aws.sdk.kotlin.runtime.region.RegionProvider
9+
import aws.smithy.kotlin.runtime.client.SdkClientConfig
1110

1211
/**
1312
* Base interface all generated AWS SDK Kotlin clients implement
@@ -20,6 +19,7 @@ public interface AwsSdkClientConfig : SdkClientConfig {
2019
* information
2120
*/
2221
public val region: String?
22+
2323
/**
2424
* An optional region provider that determines the AWS region for client operations. When specified, this provider
2525
* takes precedence over the default region provider chain, unless a static region is explicitly configured.

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/AwsServiceConfigIntegration.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ class AwsServiceConfigIntegration : KotlinIntegration {
3434

3535
propertyType = ConfigPropertyType.Custom(
3636
render = { prop, writer ->
37-
writer.write("override val #1L: #2T? = builder.#1L ?: #3T{ builder.regionProvider?.getRegion() ?: #4T() }",
37+
writer.write(
38+
"override val #1L: #2T? = builder.#1L ?: #3T{ builder.regionProvider?.getRegion() ?: #4T() }",
3839
prop.propertyName,
3940
prop.symbol,
4041
AwsRuntimeTypes.Coroutines.runBlocking,
41-
AwsRuntimeTypes.Config.Region.resolveRegion
42+
AwsRuntimeTypes.Config.Region.resolveRegion,
4243
)
43-
}
44+
},
4445
)
4546

4647
order = -100

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/RegionProviderIntegration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ class RegionProviderIntegration : KotlinIntegration {
3030
override fun additionalServiceConfigProps(ctx: CodegenContext): List<ConfigProperty> = buildList {
3131
add(RegionProviderProp)
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)