Skip to content

Commit

Permalink
Change ! to false ==.
Browse files Browse the repository at this point in the history
  • Loading branch information
SharafMohamed committed Dec 8, 2024
1 parent 33623fa commit 0decaf5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/log_surgeon/finite_automata/RegexDFAState.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ class RegexDFAState {
return m_matching_variable_ids;
}

[[nodiscard]] auto is_accepting() const -> bool { return !m_matching_variable_ids.empty(); }
[[nodiscard]] auto is_accepting() const -> bool {
return false == m_matching_variable_ids.empty();
}

auto add_byte_transition(uint8_t const& byte, RegexDFAState<stateType>* dest_state) -> void {
m_bytes_transition[byte] = dest_state;
Expand Down Expand Up @@ -67,7 +69,7 @@ auto RegexDFAState<stateType>::next(uint32_t character) const -> RegexDFAState<s
std::unique_ptr<std::vector<typename Tree::Data>> result
= m_tree_transitions.find(Interval(character, character));
assert(result->size() <= 1);
if (!result->empty()) {
if (false == result->empty()) {
return result->front().m_value;
}
return nullptr;
Expand Down

0 comments on commit 0decaf5

Please sign in to comment.