Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rishav-karanjit committed Nov 4, 2024
1 parent 830563c commit 2f7f08b
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,11 @@ protected String referenceStructureShape(final StructureShape shape) {
}
if (!this.isOptional) {
if (serviceShape.hasTrait(ServiceTrait.class)) {
writer.addImportFromModule(
SmithyNameResolver.getGoModuleNameForSmithyNamespace(
resourceOrService.toShapeId().getNamespace()
),
DafnyNameResolver.dafnyTypesNamespace(serviceShape)
);
writer.addImport(
SmithyNameResolver.getGoModuleNameForSdkNamespace(
serviceShape.getId().getNamespace()
)
);
return """
shim, ok := %1$s.(*%2$swrapped.Shim)
if !ok {
Expand Down

0 comments on commit 2f7f08b

Please sign in to comment.