fix(build): Attempt to fix possible nullable warnings as errors with releases (#418)
This commit is contained in:
parent
08f05afd01
commit
87764ca968
8 changed files with 23 additions and 11 deletions
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue