Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
koros committed Mar 19, 2024
1 parent 1ba2874 commit 5213f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kiota.Builder/Writers/TypeScript/CodeConstantWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void WriteRequestsMetadataConstant(CodeConstant codeElement, LanguageWri
else if (!isVoid)
writer.WriteLine($"responseBodyFactory: {GetTypeFactory(isVoid, isStream, executorMethod, writer)},");
var sanitizedRequestBodyContentType = executorMethod.RequestBodyContentType.SanitizeDoubleQuote();

if (!string.IsNullOrEmpty(sanitizedRequestBodyContentType))
writer.WriteLine($"requestBodyContentType: \"{sanitizedRequestBodyContentType}\",");
if (executorMethod.Parameters.FirstOrDefault(static x => x.Kind is CodeParameterKind.RequestBody) is CodeParameter requestBody)
Expand Down Expand Up @@ -205,7 +205,7 @@ private string GetSendRequestMethodName(bool isVoid, bool isStream, bool isColle
else if (isPrimitive)
{
return isCollection ? "sendCollectionOfPrimitive" : "sendPrimitive";
}
}
else
{
return isCollection ? "sendCollection" : isStream ? "sendPrimitive" : "send";
Expand Down

0 comments on commit 5213f16

Please sign in to comment.