mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-03 12:12:39 +02:00
Remove return and assign at the same time
This commit is contained in:
@@ -182,11 +182,13 @@ const Node = {
|
|||||||
|
|
||||||
this.nodes.forEach((child, i, nodes) => {
|
this.nodes.forEach((child, i, nodes) => {
|
||||||
if (iterator(child, i, nodes) === false) {
|
if (iterator(child, i, nodes) === false) {
|
||||||
return returned = false
|
returned = false
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (child.kind != 'text') {
|
if (child.kind != 'text') {
|
||||||
return returned = child.forEachDescendant(iterator)
|
returned = child.forEachDescendant(iterator)
|
||||||
|
return returned
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user