Remove the assertion, code currently expects this behavior

This commit is contained in:
ζeh Matt committed 2024-12-04 17:26:29 +02:00
1 parent dd78366a4c
commit 0ff522de31
1 file changed
+1 -3
+1 -3
View File
@@ -33,9 +33,7 @@ static auto getExtraImpl(const IntentDataStorage& storage, uint32_t key)
auto it = std::ranges::lower_bound(storage, key, {}, &IntentDataEntry::first);
if (it == storage.end() || it->first != key)
{
// If key does not exist then the usage of Intent is incorrect.
assert(false);
// TODO: The code currently assumes that some things are optional, we need to handle this better.
return T{};
}