Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump styler from 0.11.9 to 1.1.1 #39

Merged
merged 2 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ defmodule Sqids.MixProject do

defp maybe_styler_dep do
if elixir_vsn_match?("~> 1.14") do
{:styler, "~> 0.8", only: [:dev, :test], runtime: false}
{:styler, "~> 1.1", only: [:dev, :test], runtime: false}
else
[]
end
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"},
"recon": {:hex, :recon, "2.5.6", "9052588e83bfedfd9b72e1034532aee2a5369d9d9343b61aeb7fbce761010741", [:mix, :rebar3], [], "hexpm", "96c6799792d735cc0f0fd0f86267e9d351e63339cbe03df9d162010cefc26bb0"},
"sqids_blocklist": {:git, "https://github.com/sqids/sqids-blocklist.git", "0db61e23c392709c70766e07f296fc5209f20bcc", [branch: "main"]},
"styler": {:hex, :styler, "0.11.9", "2595393b94e660cd6e8b582876337cc50ff047d184ccbed42fdad2bfd5d78af5", [:mix], [], "hexpm", "8b7806ba1fdc94d0a75127c56875f91db89b75117fcc67572661010c13e1f259"},
"styler": {:hex, :styler, "1.1.1", "ccb55763316915b5de532bf14c587c211ddc86bc749ac676e74dfacd3894cc0d", [:mix], [], "hexpm", "80ce12fb862e13d998589eea7c1932f4e6ce9d6ded2182cb322f8f9b2b8d3632"},
}