mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Removing unused value from return statement in _eachAncestorReverse()
A minor cleanup. When method _eachAncestorReverse() does not have the top node argument, it returns "nothing" (undefined). Thus, the true value returned when it has the top argument – and the current Konva code never checks or uses that returned value – seems to be just a side effect of code copy-paste or alike, done in the past. Unless the function was planned to return a boolean value for a a good reason (in which case we'd need to add a return value to its end), let's remove the unused value from return.
This commit is contained in:
parent
40416a0cee
commit
ee6fc3c0b4
@ -1052,7 +1052,7 @@
|
||||
// func with this because it will be the only node
|
||||
if (top && top._id === this._id) {
|
||||
func(this);
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
|
||||
family.unshift(this);
|
||||
|
Loading…
Reference in New Issue
Block a user