Reuse local booleans for readability

This commit is contained in:
themode 2021-12-26 14:17:08 +01:00 committed by TheMode
parent ad37cc8cf3
commit f1a4f002c3
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ non-sealed class EventNodeImpl<T extends Event> implements EventNode<T> {
final boolean hasListeners = listenersArray.length > 0;
final boolean hasMap = mappedListener != null;
final boolean hasChildren = childrenListeners.length > 0;
if (listenersArray.length == 0 && mappedListener == null && childrenListeners.length == 0) {
if (!hasListeners && !hasMap && !hasChildren) {
// No listener
return null;
}