From 232f3f42355d2411d8251adfae21f275a1fbaf59 Mon Sep 17 00:00:00 2001 From: CWX Date: Sun, 19 Jan 2025 13:00:48 +0000 Subject: [PATCH] locationcontroller warnings fixed --- Core/Controllers/LocationController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/Controllers/LocationController.cs b/Core/Controllers/LocationController.cs index e7d067dd..21f476b0 100644 --- a/Core/Controllers/LocationController.cs +++ b/Core/Controllers/LocationController.cs @@ -34,7 +34,7 @@ public class LocationController( foreach (var kvp in maps) { - var mapBase = kvp.Value?.Base; + var mapBase = kvp.Value.Base; if (mapBase == null) { _logger.Debug($"Map: {kvp} has no base json file, skipping generation"); @@ -44,13 +44,13 @@ public class LocationController( // Clear out loot array mapBase.Loot = []; // Add map base data to dictionary - locationResult.Add(mapBase.IdField, mapBase); + locationResult.Add(mapBase.IdField!, mapBase); } return new LocationsGenerateAllResponse { Locations = locationResult, - Paths = locationsFromDb.Base.Paths + Paths = locationsFromDb.Base!.Paths }; }