fix(build): Attempt to fix possible nullable warnings as errors with releases (#418)

This commit is contained in:
Kamron Batman 2021-01-18 11:52:31 -08:00 • committed by GitHub
parent 08f05afd01
commit 87764ca968
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 23 additions and 11 deletions

View file

@ -25,7 +25,9 @@ namespace Server.Commands
[JsonPropertyName("gfx")] public int ItemID { get; set; }
#nullable enable
[JsonPropertyName("hue")] public int? Hue { get; set; }
#nullable disable
public CAGCategory Parent { get; set; }

View file

@ -72,6 +72,7 @@ namespace Server.Commands
JsonConfig.Serialize(fileName, list);
}
#nullable enable
public static void RecurseExport(List<CAGJson> list, CategoryEntry ce, string category)
{
category = string.IsNullOrWhiteSpace(category) ? ce.Title : $"{category}{ce.Title}";
@ -153,6 +154,7 @@ namespace Server.Commands
RecurseExport(list, subCat, category);
}
}
#nullable disable
public static void Load()
{