We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea32b61 commit 8f14e22Copy full SHA for 8f14e22
templates/dotnet/src/Appwrite/Client.cs.twig
@@ -269,8 +269,7 @@ namespace {{ spec.title | caseUcfirst }}
269
var response = await _http.SendAsync(request);
270
var code = (int)response.StatusCode;
271
272
- IEnumerable<string>? warnings = response.Headers.TryGetValues("x-{{ spec.title | lower }}-warning");
273
- if (warnings != null)
+ if (response.Headers.TryGetValues("x-{{ spec.title | lower }}-warning", out var warnings))
274
{
275
foreach (var warning in warnings)
276
0 commit comments