Skip to content

Commit

Permalink
fix: resolve credo warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yaboiishere committed Jun 10, 2024
1 parent 0ff12e4 commit 33c0839
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ defmodule AeMdw.Db.UpdateBalanceAccountMutation do
|> State.delete(Model.BalanceAccount, {old_balance, account_pk})
|> State.delete(Model.AccountBalance, account_pk)

_ ->
_balance ->
state
end
|> insert(account_pk, balance)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ defmodule AeMdw.UpdateBalanceAccountMutationTest do
end

test "Gets correct balances if there are a lot of records" do
account_pks = Enum.map(1..100, fn _ -> :crypto.strong_rand_bytes(32) end)
amounts = Enum.map(1..100, fn _ -> Enum.random(100_000_000..999_999_999) end)
account_pks = Enum.map(1..100, fn _index -> :crypto.strong_rand_bytes(32) end)
amounts = Enum.map(1..100, fn _index -> Enum.random(100_000_000..999_999_999) end)
account_amounts = Enum.zip(account_pks, amounts)

state = DbStore.new() |> State.new()
Expand Down

0 comments on commit 33c0839

Please sign in to comment.