nit: styling
This commit is contained in:
parent
b8a3609007
commit
ed517513d6
|
|
@ -25,8 +25,7 @@ public static class Web
|
||||||
|
|
||||||
if (response != RESPONSE_SUCCESS)
|
if (response != RESPONSE_SUCCESS)
|
||||||
{
|
{
|
||||||
if (response == RESPONSE_MAINTENANCE)
|
if (response == RESPONSE_MAINTENANCE) IsInMaintenance = true;
|
||||||
IsInMaintenance = true;
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -40,7 +39,7 @@ public static class Web
|
||||||
{
|
{
|
||||||
var response = await Helpers.Http.GetJson<Models.HealthCheck>(Url("/api/health"));
|
var response = await Helpers.Http.GetJson<Models.HealthCheck>(Url("/api/health"));
|
||||||
|
|
||||||
return response is null ? RESPONSE_FAILURE : response.Status;
|
return response?.Status ?? RESPONSE_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool LoadLicense(string license)
|
public static bool LoadLicense(string license)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue