From 79927ba69a05f3fb87b26ebc12bf45ab59d2319b Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 12:28:26 +0000 Subject: [PATCH] style: format code with 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 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 --- risk_management/risk_mitigation.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/risk_management/risk_mitigation.py b/risk_management/risk_mitigation.py index 77d3327ca..c7166831e 100644 --- a/risk_management/risk_mitigation.py +++ b/risk_management/risk_mitigation.py @@ -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"