Created
April 12, 2026 09:19
-
-
Save mebibou/daafb9243e1c3d3ba0ac1493aadbadb0 to your computer and use it in GitHub Desktop.
refactor_non_clean_code.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _COMPLIANCE_XXX_MAX_AMOUNT = 10000 | |
| def _check_compliance_xxx_transaction(): | |
| is_non_compliant = ( | |
| transaction.amount > _COMPLIANCE_XXX_MAX_AMOUNT and | |
| not transaction.flagged | |
| ) | |
| is_non_compliant and transaction.hold() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment