Skip to content

Commit 262ab30

Browse files
authored
Call SmithyClient destroy from client (#156)
* client destroy method will call SmithyClient destroy by default * move calling default detroy after other customizations destroy
1 parent 161a0a7 commit 262ab30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/ServiceGenerator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ private void generateDestroyMethod() {
331331
});
332332
}
333333
writer.popState();
334+
// Always call destroy() in SmithyClient class. By default, it's optional.
335+
writer.write("super.destroy();");
334336
});
335337
}
336338
}

0 commit comments

Comments
 (0)