[ox] Cleanup some old style error handling

This commit is contained in:
2021-04-17 11:33:33 -05:00
parent 6664462391
commit a22823e3b4
10 changed files with 42 additions and 54 deletions

View File

@@ -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;
}