Skip to content

Commit 9b480b7

Browse files
JordonPhillipsadamthom-amzn
authored andcommitted
Remove unnecessary writer param
1 parent 3f23338 commit 9b480b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpBindingProtocolGenerator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,12 @@ private void generateOperationResponseSerializer(
421421
writer.addUseImports(responseType);
422422
String methodName = ProtocolGenerator.getGenericSerFunctionName(symbol) + "Response";
423423
Symbol outputType = symbol.expectProperty("outputType", Symbol.class);
424-
String contextType = CodegenUtils.getOperationSerializerContextType(writer, context.getModel(), operation);
425424
writer.addImport("ServerSerdeContext", null, "@aws-smithy/server-common");
426425

427426
writer.openBlock("export const $L = async(\n"
428427
+ " input: $T,\n"
429428
+ " ctx: ServerSerdeContext\n"
430-
+ "): Promise<$T> => {", "}", methodName, outputType, contextType, responseType, () -> {
429+
+ "): Promise<$T> => {", "}", methodName, outputType, responseType, () -> {
431430
writeEmptyEndpoint(context);
432431
writeOperationStatusCode(context, operation, bindingIndex, trait);
433432
writeResponseHeaders(context, operation, bindingIndex, () -> writeDefaultHeaders(context, operation));

0 commit comments

Comments
 (0)