Skip to content

Commit

Permalink
simplify the GetSendRequestMethodName if clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
koros committed Mar 20, 2024
1 parent b42dcda commit 3d50187
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 @@ -202,13 +202,13 @@ private string GetSendRequestMethodName(bool isVoid, bool isStream, bool isColle
{
return isCollection ? "sendCollectionOfEnum" : "sendEnum";
}
else if (isPrimitive)
else if (isPrimitive || isStream)
{
return isCollection ? "sendCollectionOfPrimitive" : "sendPrimitive";
}
else
{
return isCollection ? "sendCollection" : isStream ? "sendPrimitive" : "send";
return isCollection ? "sendCollection" : "send";
}
}

Expand Down

0 comments on commit 3d50187

Please sign in to comment.