Skip to content

Commit 0730963

Browse files
author
Christopher Doris
committed
remove needless condition
1 parent d7b67f5 commit 0730963

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/cpython/context.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ function init_context()
2626

2727
if CTX.is_embedded
2828
# In this case, getting a handle to libpython is easy
29-
if CTX.lib_ptr == C_NULL
30-
CTX.lib_ptr = Ptr{Cvoid}(parse(UInt, ENV["JULIA_PYTHONCALL_LIBPTR"]))
31-
end
29+
CTX.lib_ptr = Ptr{Cvoid}(parse(UInt, ENV["JULIA_PYTHONCALL_LIBPTR"]))
3230
init_pointers()
3331
# Check Python is initialized
3432
Py_IsInitialized() == 0 && error("Python is not already initialized.")

0 commit comments

Comments
 (0)