Skip to content

Commit b94306f

Browse files
authored
Merge pull request #359 from JuliaParallel/jps/walk-data-topmost-bug
Add missing check to walk_data
2 parents bfe4502 + ac95f8a commit b94306f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sch/util.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,11 @@ Walks the data contained in `x` in DFS fashion, and executes `f` at each object
413413
that hasn't yet been seen.
414414
"""
415415
function walk_data(f, @nospecialize(x))
416+
action = f(x)
417+
if action !== missing
418+
return action
419+
end
420+
416421
seen = IdDict{Any,Nothing}()
417422
to_visit = Any[x]
418423

0 commit comments

Comments
 (0)