Skip to content

Commit

Permalink
Run code formatter (Styler)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-andrade committed Oct 12, 2024
1 parent 9387ccd commit 03dc77e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/sqids.ex
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,14 @@ defmodule Sqids do
defp encode_input_numbers_recur([input | next], alphabet, acc) do
encoded_number = encode_input_number(input, alphabet)

if next !== [] do
if next === [] do
acc = [acc, encoded_number]
{acc, alphabet}
else
separator = Alphabet.char_at!(alphabet, 0)
alphabet = Alphabet.shuffle(alphabet)
acc = [acc, encoded_number, separator]
encode_input_numbers_recur(next, alphabet, acc)
else
acc = [acc, encoded_number]
{acc, alphabet}
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/sqids/agent.ex
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ defmodule Sqids.Agent do
# Namely, when the reason for the crash - whether in us or somewhere else
# in the supervision tree - hasn't gone away by simply restarting.

unless crashing?(reason) do
if !crashing?(reason) do
shared_state_key = state(state, :shared_state_key)
:persistent_term.erase(shared_state_key)
end
Expand Down

0 comments on commit 03dc77e

Please sign in to comment.