Skip to content

Commit

Permalink
style: format code with Autopep8, Black, ClangFormat, dotnet-format, …
Browse files Browse the repository at this point in the history
…Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf

This commit fixes the style issues introduced in 22c05ff according to the output
from Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java
Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt,
Scalafmt, StandardJS, StandardRB, swift-format and Yapf.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored May 10, 2024
1 parent 22c05ff commit 79927ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions risk_management/risk_mitigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ def __init__(self, risk_assessment_model):

def mitigate_risk(self, transaction):
risk_level = self.risk_assessment_model.predict_risk(transaction)
if risk_level == 'high':
if risk_level == "high":
# Implement risk mitigation strategies here
# For example, you could flag the transaction for review or decline it altogether
return 'Flagged for review'
elif risk_level == 'medium':
return "Flagged for review"
elif risk_level == "medium":
# Implement risk mitigation strategies here
# For example, you could require additional authentication or verification
return 'Additional authentication required'
return "Additional authentication required"
else:
return 'Transaction approved'
return "Transaction approved"

0 comments on commit 79927ba

Please sign in to comment.