Skip to content

Commit

Permalink
port of 5593252 [upstream/main] Allow an empty log type. (y-scope#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlion committed Sep 1, 2022
1 parent 36e7e77 commit 5324e5c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions components/core/src/LogTypeDictionaryWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ bool LogTypeDictionaryWriter::add_entry (LogTypeDictionaryEntry& logtype_entry,
bool is_new_entry = false;

const string& value = logtype_entry.get_value();
if (value.empty()) {
throw OperationFailed(ErrorCode_Corrupt, __FILENAME__, __LINE__);
}
const auto ix = m_value_to_id.find(value);
if (m_value_to_id.end() != ix) {
// Entry exists so get its ID
Expand Down

0 comments on commit 5324e5c

Please sign in to comment.