Skip to content

Commit

Permalink
Add safe operator
Browse files Browse the repository at this point in the history
  • Loading branch information
lauragilgz committed Nov 29, 2024
1 parent 0cfe429 commit 314d839
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cfonb/operation_details/ibe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class IBE < Base

def self.apply(operation, line)
operation.creditor_identifier = line.detail[0..34].strip
operation.creditor_identifier_type = line.detail[35..-1].strip
operation.creditor_identifier_type = line.detail[35..-1]&.strip
end

CFONB::OperationDetails.register('IBE', self)
Expand Down
2 changes: 1 addition & 1 deletion lib/cfonb/operation_details/ipy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class IPY < Base

def self.apply(operation, line)
operation.debtor_identifier = line.detail[0..34].strip
operation.debtor_identifier_type = line.detail[35..-1].strip
operation.debtor_identifier_type = line.detail[35..-1]&.strip
end

CFONB::OperationDetails.register('IPY', self)
Expand Down

0 comments on commit 314d839

Please sign in to comment.