Skip to content

Commit 4abbab6

Browse files
committed
refactor: extract method chain
use a variable to improve readability
1 parent 14cf19d commit 4abbab6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

box/business_processes/import_statements.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def self.link_statement_to_transaction(account, statement)
6666
end
6767

6868
def self.checksum(transaction, bank_statement)
69-
ChecksumGenerator.from_payload(checksum_attributes(transaction, bank_statement.remote_account))
69+
checksum_payload = checksum_attributes(transaction, bank_statement.remote_account)
70+
ChecksumGenerator.from_payload(checksum_payload)
7071
end
7172

7273
def self.checksum_attributes(transaction, remote_account)

0 commit comments

Comments
 (0)