Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43be09b5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make matchesSimple return false if there is a parsing error"

parents 8bb6da69 16c8c6ab
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -117,6 +117,9 @@ bool matchesSimple(const SimpleAtomMatcher& simpleMatcher, const LogEvent& event
                    allMatched = false;
                    break;
                }
            } else {
                allMatched = false;
                break;
            }
        } else if (matcherCase == KeyValueMatcher::ValueMatcherCase::kEqInt ||
                   matcherCase == KeyValueMatcher::ValueMatcherCase::kLtInt ||
@@ -153,6 +156,9 @@ bool matchesSimple(const SimpleAtomMatcher& simpleMatcher, const LogEvent& event
                        break;
                    }
                }
            } else {
                allMatched = false;
                break;
            }
        } else if (matcherCase == KeyValueMatcher::ValueMatcherCase::kEqBool) {
            // Boolean fields
@@ -163,6 +169,9 @@ bool matchesSimple(const SimpleAtomMatcher& simpleMatcher, const LogEvent& event
                    allMatched = false;
                    break;
                }
            } else {
                allMatched = false;
                break;
            }
        } else if (matcherCase == KeyValueMatcher::ValueMatcherCase::kLtFloat ||
                   matcherCase == KeyValueMatcher::ValueMatcherCase::kGtFloat) {
@@ -181,6 +190,9 @@ bool matchesSimple(const SimpleAtomMatcher& simpleMatcher, const LogEvent& event
                        break;
                    }
                }
            } else {
                allMatched = false;
                break;
            }
        } else {
            // If value matcher is not present, assume that we match.