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 e87dfba commit 97123eaCopy full SHA for 97123ea
src/Initium/Results/ServiceResult.cs
@@ -424,7 +424,7 @@ public class ServiceResult<TData> : ServiceResult
424
public static implicit operator ServiceResult<TData>(HttpResponseMessage httpResponseMessage) => new()
425
{
426
Success = httpResponseMessage.IsSuccessStatusCode,
427
- Data = httpResponseMessage.IsSuccessStatusCode ? httpResponseMessage.Content.ReadFromJsonAsync<TData>().Result : default
+ Data = httpResponseMessage.Content.ReadFromJsonAsync<TData>().Result
428
};
429
430
/// <summary>
0 commit comments