Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
change log print condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jony4 committed Apr 21, 2021
1 parent 832a8bf commit ec3ada2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions element.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,13 @@ func (ele *Element) SearchFunc(fn func(*Element) bool) []*Element {
if fn(el) {
results = append(results, el)
}
log.Print(el.walk(search))
if err := el.walk(search); err != nil {
log.Print()
}
}
if err := ele.walk(search); err != nil {
log.Print()
}
log.Print(ele.walk(search))
return results
}

Expand Down

0 comments on commit ec3ada2

Please sign in to comment.