We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a69f8 commit 56f0423Copy full SHA for 56f0423
fickling/cli.py
@@ -175,7 +175,7 @@ def main(argv: list[str] | None = None) -> int:
175
"Do not unpickle this file if it is from an untrusted source!\n\n"
176
)
177
178
- return [EXIT_UNSAFE, EXIT_CLEAN][was_safe]
+ return EXIT_CLEAN if was_safe else EXIT_UNSAFE
179
180
else:
181
var_id = 0
fickling/constants.py
@@ -1,5 +1,3 @@
1
-"""Fickling constants module - shared constants to avoid circular imports."""
2
-
3
# ClamAV-compatible exit codes for CI/CD integration
4
EXIT_CLEAN = 0 # No issues found
5
EXIT_UNSAFE = 1 # Potentially malicious content detected
0 commit comments