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 d504395 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 d504395 commit 057a7d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions transaction_processing/transaction_processing.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import time


class TransactionProcessor:
def __init__(self, transaction_validator, transaction_router):
self.transaction_validator = transaction_validator
Expand All @@ -8,11 +9,11 @@ def __init__(self, transaction_validator, transaction_router):
def process_transaction(self, transaction):
errors = self.transaction_validator.validate_transaction(transaction)
if errors:
print('Transaction errors:', errors)
print("Transaction errors:", errors)
return False
else:
channel = self.transaction_router.route_transaction(transaction)
print('Transaction routed to:', channel)
print("Transaction routed to:", channel)
time.sleep(1)
print('Transaction processed successfully.')
print("Transaction processed successfully.")
return True

0 comments on commit 057a7d4

Please sign in to comment.