From ed517513d6535d3e3f4979d04200e80024e5cd9e Mon Sep 17 00:00:00 2001 From: rjindael Date: Wed, 2 Aug 2023 20:21:29 -0700 Subject: [PATCH] nit: styling --- Kiseki.Launcher/Web.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)