From 57215ecf5205c1a1ed6c3a8c41078adb4b70c12f Mon Sep 17 00:00:00 2001 From: Isaiah Vita Date: Wed, 26 Jul 2023 08:47:37 -0700 Subject: [PATCH] remove unnecessary line thats breaking full build --- .../amazon/smithy/aws/go/codegen/EndpointGenerator.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/EndpointGenerator.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/EndpointGenerator.java index 3afdbeb931f..64a24f25800 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/EndpointGenerator.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/EndpointGenerator.java @@ -29,7 +29,6 @@ import java.util.stream.Stream; import software.amazon.smithy.aws.go.codegen.customization.S3ModelUtils; import software.amazon.smithy.aws.traits.ServiceTrait; -import software.amazon.smithy.aws.traits.auth.SigV4Trait; import software.amazon.smithy.codegen.core.CodegenException; import software.amazon.smithy.codegen.core.Symbol; import software.amazon.smithy.go.codegen.GoSettings; @@ -542,7 +541,6 @@ private void generateMiddlewareResolverBody(GoStackStepMiddlewareGenerator g, Go w.openBlock("if len(awsmiddleware.GetSigningName(ctx)) == 0 {", "}", () -> { w.write("signingName := endpoint.SigningName"); w.openBlock("if len(signingName) == 0 {", "}", () -> { - serviceShape.expectTrait(SigV4Trait.class).getName(); w.write("signingName = $S", serviceShape.expectTrait(ServiceTrait.class).getArnNamespace()); }); w.write("ctx = awsmiddleware.SetSigningName(ctx, signingName)");