mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Try different approach to null items
This commit is contained in:
@@ -63,7 +63,7 @@ namespace SabreTools.Library.DatFiles
|
||||
EnsureKey(key);
|
||||
|
||||
// Now return the value
|
||||
return Items[key].Where(i => i != null).ToList();
|
||||
return Items[key];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,6 +77,10 @@ namespace SabreTools.Library.DatFiles
|
||||
// Ensure the key exists
|
||||
EnsureKey(key);
|
||||
|
||||
// If item is null, don't add it
|
||||
if (value == null)
|
||||
return;
|
||||
|
||||
// Now add the value
|
||||
Items[key].Add(value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user