Skip to content

Commit c707032

Browse files
committed
fix return
1 parent dcbc9ee commit c707032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PyCall.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ end
8585
# queue to try again later when we'll eventually be on the main thread.
8686
function _pydecref_eventually(po)
8787
if Threads.threadid()==1
88-
return pydecref(po)
88+
pydecref(po)
8989
else
9090
finalizer(_pydecref_eventually, po)
91-
return nothing
9291
end
92+
return nothing
9393
end
9494

9595
PyPtr(o::PyObject) = getfield(o, :o)

0 commit comments

Comments
 (0)