We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d382fa6 commit ebdcf7cCopy full SHA for ebdcf7c
source/common/matcher/field_matcher.h
@@ -16,7 +16,12 @@ struct FieldMatchResult {
16
// The result, if matching was completed.
17
absl::optional<bool> result_;
18
19
- bool result() const { return *result_; }
+ // The unwrapped result. Should only be called if match_state_ == MatchComplete.
20
+ bool result() const {
21
+ ASSERT(match_state_ == MatchState::MatchComplete);
22
+ ASSERT(result_.has_value());
23
+ return *result_;
24
+ }
25
};
26
27
/**
@@ -87,6 +92,7 @@ template <class DataType> class AnyFieldMatcher : public FieldMatcher<DataType>
87
92
88
93
if (result.match_state_ == MatchState::UnableToMatch) {
89
94
unable_to_match_some_matchers = true;
95
+ continue;
90
96
}
91
97
98
if (result.result()) {
0 commit comments