Skip to content

Commit

Permalink
Replace else case with assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTF committed Nov 24, 2024
1 parent 3f817fa commit ad0128a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/engine/AddCombinedRowToTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,10 @@ class AddCombinedRowToIdTable {
// pointer reference to the proper value.
template <typename T>
void mergeVocab(const T& table, const LocalVocab*& currentVocab) {
AD_CORRECTNESS_CHECK(currentVocab == nullptr);
if constexpr (requires { table.getLocalVocab(); }) {
currentVocab = &table.getLocalVocab();
mergedVocab_.mergeWith(std::span{&table.getLocalVocab(), 1});
} else {
currentVocab = nullptr;
}
}

Expand Down

0 comments on commit ad0128a

Please sign in to comment.