Skip to content

Commit a862342

Browse files
committed
fix: Unignore some code lines
1 parent 910560f commit a862342

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/c2pa/c2pa.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,11 +1606,11 @@ def wrapped_callback(
16061606
):
16071607
# Error: invalid input, invalid so return -1,
16081608
# native code will handle it!
1609-
return -1 # pragma: no cover
1609+
return -1
16101610

16111611
# Validate buffer sizes before memory operations
16121612
if data_len > 1024 * 1024: # 1MB limit
1613-
return -1 # pragma: no cover
1613+
return -1
16141614

16151615
# Recover signed data (copy, to avoid lifetime issues)
16161616
temp_buffer = (ctypes.c_ubyte * data_len)()
@@ -1620,14 +1620,14 @@ def wrapped_callback(
16201620
if not data:
16211621
# Error: empty data, invalid so return -1,
16221622
# native code will also handle it!
1623-
return -1 # pragma: no cover
1623+
return -1
16241624

16251625
# Call the user's callback
16261626
signature = callback(data)
16271627
if not signature:
16281628
# Error: empty signature, invalid so return -1,
16291629
# native code will handle that too!
1630-
return -1 # pragma: no cover
1630+
return -1
16311631

16321632
# Copy the signature back to the C buffer
16331633
# (since callback is used in native code)
@@ -1638,7 +1638,7 @@ def wrapped_callback(
16381638

16391639
# Native code expects the signed len to be returned, we oblige
16401640
return actual_len
1641-
except Exception as e: # pragma: no cover
1641+
except Exception as e:
16421642
print(
16431643
cls._ERROR_MESSAGES['callback_error'].format(
16441644
str(e)), file=sys.stderr)

0 commit comments

Comments
 (0)