Reduce uncertainty in returned value nullability

This commit is contained in:
Matt Nadareski
2025-01-13 13:22:48 -05:00
parent 8ec4605725
commit c6dde56c1e
5 changed files with 86 additions and 121 deletions

View File

@@ -463,7 +463,7 @@ namespace SabreTools.DatTools
continue;
// If we should check for the items in the machine
var items = datFile.GetItemsForBucket(machine.GetStringFieldValue(Models.Metadata.Machine.NameKey)!);
var items = datFile.GetItemsForBucket(machine.GetStringFieldValue(Models.Metadata.Machine.NameKey));
if (shouldCheck && items!.Count > 1)
outputFormat = OutputFormat.Folder;
else if (shouldCheck && items!.Count == 1)