1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Only do one type check

This commit is contained in:
Travis Ralston
2019-11-26 10:31:04 -07:00
committed by GitHub
parent 682a5daf1c
commit 1b877118ef

View File

@@ -268,7 +268,7 @@ function PushProcessor(client) {
}
const val = valueForDottedKey(cond.key, ev);
if (isNullOrUndefined(val) || typeof val != 'string') {
if (typeof val !== 'string') {
return false;
}