From 4e346f6389c72d843514d11726f73f4504cc52fa Mon Sep 17 00:00:00 2001 From: christostatitzikidis Date: Sat, 4 Feb 2023 13:04:28 +0000 Subject: [PATCH] Removes comment --- .../Amazon.Lambda.AspNetCoreServer/APIGatewayProxyFunction.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/src/Amazon.Lambda.AspNetCoreServer/APIGatewayProxyFunction.cs b/Libraries/src/Amazon.Lambda.AspNetCoreServer/APIGatewayProxyFunction.cs index 48409f94b..ef91e5f43 100644 --- a/Libraries/src/Amazon.Lambda.AspNetCoreServer/APIGatewayProxyFunction.cs +++ b/Libraries/src/Amazon.Lambda.AspNetCoreServer/APIGatewayProxyFunction.cs @@ -168,8 +168,7 @@ protected override void MarshallRequest(InvokeFeatures features, APIGatewayProxy path = path.Replace($"{{{pathParameter.Key}}}", pathParameter.Value); } } - // As a matter of fact, is there a reason for the if clause above? A simpler/faster solution would be to straight on replace the path as below - + if (string.IsNullOrEmpty(path)) { path = apiGatewayRequest.Path;