forked from liza/Deliveroo
[F] Fix null safety in GetItemIdFromItemName
This commit is contained in:
parent
2ab7ae3c06
commit
d5d2247531
@ -23,5 +23,6 @@ internal sealed class ItemCache
|
||||
}
|
||||
}
|
||||
|
||||
public HashSet<uint> GetItemIdFromItemName(string name) => _itemNamesToIds[name];
|
||||
public HashSet<uint> GetItemIdFromItemName(string name) =>
|
||||
_itemNamesToIds.TryGetValue(name, out var itemIds) ? itemIds : [];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user