1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-20 15:14:38 +01:00

Remove return and assign at the same time

This commit is contained in:
Soreine 2016-11-10 16:13:46 +01:00
parent 4a16a9be4a
commit 95107a7204

View File

@ -182,11 +182,13 @@ const Node = {
this.nodes.forEach((child, i, nodes) => {
if (iterator(child, i, nodes) === false) {
return returned = false
returned = false
return false
}
if (child.kind != 'text') {
return returned = child.forEachDescendant(iterator)
returned = child.forEachDescendant(iterator)
return returned
}
})