Skip to content

Commit

Permalink
mark methods as static that does not access instance variables (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
runeanielsen authored Aug 24, 2024
1 parent 2e22bcf commit 0e6621c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Typesense/TypesenseClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -729,10 +729,10 @@ private static TypesenseApiException GetException(HttpStatusCode statusCode, str
_ => throw new TypesenseApiException($"Received an unspecified status-code: '{Enum.GetName(statusCode)}' from Typesense, with message: '{message}'.")
};

private StringContent GetApplicationJsonStringContent(string jsonString)
private static StringContent GetApplicationJsonStringContent(string jsonString)
=> new(jsonString, Encoding.UTF8, MediaTypeNames.Application.Json);

private StringContent GetTextPlainStringContent(string jsonString)
private static StringContent GetTextPlainStringContent(string jsonString)
=> new(jsonString, Encoding.UTF8, "text/plain");

private MultiSearchResult<T> HandleDeserializeMultiSearch<T>(JsonElement jsonElement)
Expand Down

0 comments on commit 0e6621c

Please sign in to comment.