BAN: Add [[nodiscard]] to BAN functions returning ErrorOr

This commit is contained in:
2023-01-12 23:57:07 +02:00
parent 78da037dda
commit 61bd9da8e0
7 changed files with 80 additions and 66 deletions

View File

@@ -95,12 +95,12 @@ namespace BAN
if (comp(m_data[i]))
{
if (allow_empties || start != i)
result.PushBack(this->Substring(start, i - start));
TRY(result.PushBack(this->Substring(start, i - start)));
start = i + 1;
}
}
if (start != m_size)
result.PushBack(this->Substring(start));
TRY(result.PushBack(this->Substring(start)));
return result;
}