Skip to content

Commit 97123ea

Browse files
committed
Always deserialize the output
1 parent e87dfba commit 97123ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Initium/Results/ServiceResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public class ServiceResult<TData> : ServiceResult
424424
public static implicit operator ServiceResult<TData>(HttpResponseMessage httpResponseMessage) => new()
425425
{
426426
Success = httpResponseMessage.IsSuccessStatusCode,
427-
Data = httpResponseMessage.IsSuccessStatusCode ? httpResponseMessage.Content.ReadFromJsonAsync<TData>().Result : default
427+
Data = httpResponseMessage.Content.ReadFromJsonAsync<TData>().Result
428428
};
429429

430430
/// <summary>

0 commit comments

Comments
 (0)