[ox] Cleanup some old style error handling
This commit is contained in:
2
deps/ox/src/ox/std/hashmap.hpp
vendored
2
deps/ox/src/ox/std/hashmap.hpp
vendored
@@ -144,7 +144,7 @@ template<typename K, typename T>
|
||||
Result<const T*> HashMap<K, T>::at(K k) const {
|
||||
auto p = access(m_pairs, k);
|
||||
if (!p) {
|
||||
return {nullptr, OxError(1, "Value not found for key")};
|
||||
return OxError(1, "Value not found for key");
|
||||
}
|
||||
return &p->value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user