File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -324,15 +324,15 @@ private void generateDestroyMethod() {
324
324
// Generates the destroy() method, and calls the destroy() method of
325
325
// any runtime plugin that claims to have a destroy method.
326
326
writer .openBlock ("destroy(): void {" , "}" , () -> {
327
- // Always call destroy() in SmithyClient class. By default, it's optional.
328
- writer .write ("super.destroy();" );
329
327
writer .pushState (CLIENT_DESTROY_SECTION );
330
328
for (RuntimeClientPlugin plugin : runtimePlugins ) {
331
329
plugin .getDestroyFunction ().ifPresent (destroy -> {
332
330
writer .write ("$T(this.config);" , destroy );
333
331
});
334
332
}
335
333
writer .popState ();
334
+ // Always call destroy() in SmithyClient class. By default, it's optional.
335
+ writer .write ("super.destroy();" );
336
336
});
337
337
}
338
338
}
You can’t perform that action at this time.
0 commit comments