diff --git a/Kiseki.Launcher/Web.cs b/Kiseki.Launcher/Web.cs index f471283..be4fd4d 100644 --- a/Kiseki.Launcher/Web.cs +++ b/Kiseki.Launcher/Web.cs @@ -25,8 +25,7 @@ public static class Web if (response != RESPONSE_SUCCESS) { - if (response == RESPONSE_MAINTENANCE) - IsInMaintenance = true; + if (response == RESPONSE_MAINTENANCE) IsInMaintenance = true; return false; } @@ -40,7 +39,7 @@ public static class Web { var response = await Helpers.Http.GetJson(Url("/api/health")); - return response is null ? RESPONSE_FAILURE : response.Status; + return response?.Status ?? RESPONSE_FAILURE; } public static bool LoadLicense(string license)