mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 18:39:51 +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) => {
|
||||
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
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user