From db73c11aed935498f57b1445fdc8eec5e35f11a2 Mon Sep 17 00:00:00 2001 From: George Fu Date: Mon, 5 Feb 2024 16:24:51 +0000 Subject: [PATCH] change Promise to Promise --- .../codegen/integration/HttpProtocolGeneratorUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpProtocolGeneratorUtils.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpProtocolGeneratorUtils.java index 723759eb045..eeeea2fc6dc 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpProtocolGeneratorUtils.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpProtocolGeneratorUtils.java @@ -332,7 +332,7 @@ static Set generateUnifiedErrorDispatcher( writer.openBlock("const $L = async(\n" + " output: $T,\n" + " context: __SerdeContext,\n" - + "): Promise => {", "}", errorMethodName, responseType, () -> { + + "): Promise => {", "}", errorMethodName, responseType, () -> { // Prepare error response for parsing error code. If error code needs to be parsed from response body // then we collect body and parse it to JS object, otherwise leave the response body as is. if (shouldParseErrorBody) {