1
1
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-12-24 05:18:23 -05:00

fix AllServersResponse can be null

This commit is contained in:
CyberL1 2024-05-15 10:07:13 +02:00
parent cf0ee17f0d
commit 152ad2c0dc

View File

@ -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)
{