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:
VladimirTechMan 2018-07-24 11:17:45 -04:00
parent 40416a0cee
commit ee6fc3c0b4

View File

@ -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);