Skip to content

Commit 2edc278

Browse files
committed
elide typeassert and add explicit return
1 parent dbbf71a commit 2edc278

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/task.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,8 +1212,8 @@ function wait()
12121212
end
12131213
task = ccall(:jl_task_get_next, Ref{Task}, (Any, Any, Any), trypoptask, W, checktaskempty)
12141214
end
1215-
set_next_task(task::Task)
1216-
try_yieldto(ensure_rescheduled)
1215+
set_next_task(task)
1216+
return try_yieldto(ensure_rescheduled)
12171217
end
12181218

12191219
if Sys.iswindows()

0 commit comments

Comments
 (0)