Skip to content

Commit

Permalink
Fix linting errorsg
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed May 26, 2024
1 parent f6c7823 commit 1872103
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/data_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def sanitize_params(params)
length: params.require(:length).to_i,
columns: {}
}
params.require(:columns).each do |_, column|
params.require(:columns).each_value do |column|
type, *values = column.require(:search)[:value].split(":")
value = values.join(":") unless values.empty?
h = clean[:columns][column.require(:data).to_sym] = {
Expand Down
2 changes: 2 additions & 0 deletions app/models/concerns/transaction_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module TransactionHelpers
def peer_of(user)
return creditor if user == debtor
return debtor if user == creditor

raise "User is not a peer of this transaction"
end

def client_transaction?
Expand Down

0 comments on commit 1872103

Please sign in to comment.