remove unnecessary variable comparation (#18598)

Since it will continue when the props are equal in line 767, there is no need to compare whether they are not equal.
This commit is contained in:
BetaSu
2020-04-14 21:53:47 +08:00
committed by GitHub
parent b928fc030a
commit 1d7bd52688
+1 -4
View File
@@ -824,10 +824,7 @@ export function diffProperties(
// inserted already.
}
} else if (propKey === CHILDREN) {
if (
lastProp !== nextProp &&
(typeof nextProp === 'string' || typeof nextProp === 'number')
) {
if (typeof nextProp === 'string' || typeof nextProp === 'number') {
(updatePayload = updatePayload || []).push(propKey, '' + nextProp);
}
} else if (