Skip to content

Commit 13fb182

Browse files
committed
fix: Refactor
1 parent 37bc58a commit 13fb182

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/c2pa/c2pa.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ def _validate_library_exports(lib):
9494
env_lib_name = os.environ.get("C2PA_LIBRARY_NAME")
9595
if env_lib_name:
9696
# Use the environment variable library name
97-
_lib, _ = dynamically_load_library(env_lib_name)
97+
_lib = dynamically_load_library(env_lib_name)
9898
else:
9999
# Use the platform-specific name
100-
_lib, _ = dynamically_load_library(_lib_name_default)
100+
_lib = dynamically_load_library(_lib_name_default)
101101

102102
_validate_library_exports(_lib)
103103

src/c2pa/lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ def dynamically_load_library(lib_name: Optional[str] = None, load_c2pa: bool = T
9292
lib = _load_single_library(lib_name, possible_paths)
9393
if not lib:
9494
raise RuntimeError(f"Could not find {lib_name} in any of the search paths")
95-
return lib, None
95+
return lib
9696

9797
c2pa_lib = None
9898
if load_c2pa:
9999
c2pa_lib = _load_single_library(c2pa_lib_name, possible_paths)
100100
if not c2pa_lib:
101101
raise RuntimeError(f"Could not find {c2pa_lib_name} in any of the search paths")
102102

103-
return c2pa_lib, None
103+
return c2pa_lib

0 commit comments

Comments
 (0)