From 4f6f4e1f1abc17343d284ea51192143b50449089 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 4 Mar 2023 02:04:47 -0500 Subject: [PATCH] Me when I make the exact mistake twice --- elements/core/propagator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elements/core/propagator.go b/elements/core/propagator.go index c5a3f0b..b4bcd15 100644 --- a/elements/core/propagator.go +++ b/elements/core/propagator.go @@ -285,8 +285,8 @@ func (propagator *Propagator) forChildren (callback func (child elements.Element func (propagator *Propagator) forChildrenReverse (callback func (child elements.Element) bool) { for index := propagator.parent.CountChildren() - 1; index > 0; index -- { child := propagator.parent.Child(index) - if child == nil { continue } - if callback(child) { break } + if child == nil { continue } + if !callback(child) { break } } }