File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
smithy-typescript-codegen
src/main/java/software/amazon/smithy/typescript/codegen Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ extra["displayName"] = "Smithy :: Typescript :: Codegen"
18
18
extra[" moduleName" ] = " software.amazon.smithy.typescript.codegen"
19
19
20
20
dependencies {
21
- api(" software.amazon.smithy:smithy-aws-traits:[1.7.2, 2.0[" )
22
21
api(" software.amazon.smithy:smithy-codegen-core:[1.5.0, 2.0[" )
23
22
api(" software.amazon.smithy:smithy-waiters:[1.5.0, 2.0[" )
24
23
implementation(" software.amazon.smithy:smithy-protocol-test-traits:[1.5.0, 2.0[" )
Original file line number Diff line number Diff line change 27
27
import java .util .TreeSet ;
28
28
import java .util .UUID ;
29
29
import java .util .logging .Logger ;
30
- import software .amazon .smithy .aws .traits .ServiceTrait ;
31
30
import software .amazon .smithy .build .FileManifest ;
32
31
import software .amazon .smithy .build .PluginContext ;
33
32
import software .amazon .smithy .codegen .core .Symbol ;
@@ -148,12 +147,7 @@ class CodegenVisitor extends ShapeVisitor.Default<Void> {
148
147
.addTag (TypeScriptShapeLinkProvider .DESERIALIZER_TAG , "Command deserializer" )
149
148
.build ();
150
149
151
- String serviceId ;
152
- if (service .hasTrait (ServiceTrait .class )) {
153
- serviceId = service .getTrait (ServiceTrait .class ).get ().getSdkId ();
154
- } else {
155
- serviceId = service .getId ().getName ();
156
- }
150
+ String serviceId = service .getId ().getName ();
157
151
TraceMetadata artifactMetadata = TraceMetadata .builder ()
158
152
.setTimestampAsNow ()
159
153
.id (serviceId )
You can’t perform that action at this time.
0 commit comments