Skip to content

Commit

Permalink
Why is the ordering of these statements load-bearing???
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Nov 30, 2023
1 parent fced4d7 commit b9a9ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/OpenSearchClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ Action<IRequestConfiguration> forceConfiguration
if (forceConfiguration != null) ForceConfiguration(request, forceConfiguration);
if (request.ContentType != null) ForceContentType(request, request.ContentType);

var method = request.HttpMethod;
var url = request.GetUrl(ConnectionSettings);
var method = request.HttpMethod;
var body = method == HttpMethod.GET || method == HttpMethod.HEAD || !parameters.SupportsBody ? null : bodySelector(request);

return (method, url, body);
Expand Down

0 comments on commit b9a9ab2

Please sign in to comment.