mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-11-21 13:38:21 -05:00
fix AllServersResponse can be null
This commit is contained in:
parent
cf0ee17f0d
commit
152ad2c0dc
@ -15,7 +15,7 @@ namespace MyMcRealms.MyMcAPI
|
||||
|
||||
public async Task<AllServersResponse?> GetAllServers()
|
||||
{
|
||||
AllServersResponse response = await httpClient.GetFromJsonAsync<AllServersResponse>($"list_all_servers/{Environment.GetEnvironmentVariable("MYMC_SERVER_LIST_KEY")}");
|
||||
AllServersResponse? response = await httpClient.GetFromJsonAsync<AllServersResponse>($"list_all_servers/{Environment.GetEnvironmentVariable("MYMC_SERVER_LIST_KEY")}");
|
||||
|
||||
if (response == null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user