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:
parent
4a16a9be4a
commit
95107a7204
@ -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
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user