mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Reduce uncertainty in returned value nullability
This commit is contained in:
@@ -416,8 +416,11 @@ namespace SabreTools.DatFiles
|
||||
/// <summary>
|
||||
/// Get the items associated with a bucket name
|
||||
/// </summary>
|
||||
public List<DatItem> GetItemsForBucket(string bucketName, bool filter = false)
|
||||
public List<DatItem> GetItemsForBucket(string? bucketName, bool filter = false)
|
||||
{
|
||||
if (bucketName == null)
|
||||
return [];
|
||||
|
||||
if (!_items.ContainsKey(bucketName))
|
||||
return [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user