Unify WebBrowser API in regards to nullable bodies (#2593)

* Unify logic for nullable bodies

* Update ArchiWebHandler.cs

* Misc
This commit is contained in:
Łukasz Domeradzki
2022-06-01 21:13:40 +02:00
committed by GitHub
parent d82df0074f
commit 715ed034df
9 changed files with 56 additions and 165 deletions

View File

@@ -41,7 +41,7 @@ internal static class CatAPI {
ObjectResponse<MeowResponse>? response = await webBrowser.UrlGetToJsonObject<MeowResponse>(request).ConfigureAwait(false);
if (response == null) {
if (response?.Content == null) {
return null;
}