Skip to content

Commit ab292be

Browse files
authored
fix: Eliminate warning for no-throw on identity resolver creation (#2015)
1 parent 37e02ae commit ab292be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/AWSHttpProtocolServiceClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class AWSHttpProtocolServiceClient(
6565
{
6666
it.format("\$N()", AWSSDKIdentityTypes.DefaultBearerTokenIdentityResolverChain)
6767
},
68-
true,
68+
false,
6969
)
7070
} else {
7171
property

codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/plugins/DefaultAWSAuthSchemePlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class DefaultAWSAuthSchemePlugin(
5858
}
5959
if (AuthUtils(ctx).isSupportedAuthScheme(HttpBearerAuthTrait.ID)) {
6060
writer.write(
61-
"config.bearerTokenIdentityResolver = try \$N()",
61+
"config.bearerTokenIdentityResolver = \$N()",
6262
AWSSDKIdentityTypes.DefaultBearerTokenIdentityResolverChain,
6363
)
6464
} else {

0 commit comments

Comments
 (0)