Deconstructed dictionaries to improve readability

This commit is contained in:
Chomp
2025-06-27 23:21:44 +01:00
parent 6f4bbe02fe
commit d2267847a8
12 changed files with 76 additions and 72 deletions
@@ -31,14 +31,14 @@ public class LocationController(
// keyed by _id location property
var locationResult = new Dictionary<string, LocationBase>();
foreach (var kvp in maps)
foreach (var (locationId, location) in maps)
{
var mapBase = kvp.Value.Base;
var mapBase = location.Base;
if (mapBase == null)
{
if (_logger.IsLogEnabled(LogLevel.Debug))
{
_logger.Debug($"Map: {kvp} has no base json file, skipping generation");
_logger.Debug($"Map: {locationId} has no base json file, skipping generation");
}
continue;