Skip to content

Commit 56f0423

Browse files
Minor cleanups
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c7a69f8 commit 56f0423

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

fickling/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def main(argv: list[str] | None = None) -> int:
175175
"Do not unpickle this file if it is from an untrusted source!\n\n"
176176
)
177177

178-
return [EXIT_UNSAFE, EXIT_CLEAN][was_safe]
178+
return EXIT_CLEAN if was_safe else EXIT_UNSAFE
179179

180180
else:
181181
var_id = 0

fickling/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""Fickling constants module - shared constants to avoid circular imports."""
2-
31
# ClamAV-compatible exit codes for CI/CD integration
42
EXIT_CLEAN = 0 # No issues found
53
EXIT_UNSAFE = 1 # Potentially malicious content detected

0 commit comments

Comments
 (0)