Skip to content

Commit f506815

Browse files
refactor(platform): Make intentionality in loop explicit given feedback from security scanner ox
1 parent bd03867 commit f506815

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/aignostics/platform/_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ def calculate_file_crc32c(file: Path) -> str:
182182
"""
183183
checksum = google_crc32c.Checksum() # type: ignore[no-untyped-call]
184184
with open(file, mode="rb") as f:
185+
# Iterate through file chunks - checksum is calculated as side effect of consume()
185186
for _ in checksum.consume(f, EIGHT_MB): # type: ignore[no-untyped-call]
186-
pass
187+
continue # Consume all chunks; checksum accumulates internally
187188
return base64.b64encode(checksum.digest()).decode("ascii") # type: ignore[no-untyped-call]
188189

189190

0 commit comments

Comments
 (0)