Return false if incorrect event value type

- getDoubleOrLong sets the return value if the event value type is an int, long, float, or double. If none of these types are matched, the default switch case should return false.

Test: bit statsd_test:*
Change-Id: I55f0bd5865810627da4fc62440f9450c0b1fa730
This commit is contained in:
tsaichristine
2019-10-28 11:32:31 -07:00
parent 6db3af398f
commit 409468d773

View File

@@ -650,6 +650,7 @@ bool getDoubleOrLong(const LogEvent& event, const Matcher& matcher, Value& ret)
ret.setDouble(value.mValue.double_value);
break;
default:
return false;
break;
}
return true;