Skip to content

Commit

Permalink
Fix dialyzer on Elixir 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Jun 10, 2024
1 parent e05ff91 commit c477397
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/cldr/config/rbnf_config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ defmodule Cldr.Rbnf.Config do
# a valid RBNF locale

def for_locale(locale_name) when Cldr.is_locale_name(locale_name) do
with true <- File.exists?(locale_path(locale_name)) do
if File.exists?(locale_path(locale_name)) do
rules =
locale_name
|> locale_path
Expand All @@ -134,11 +134,7 @@ defmodule Cldr.Rbnf.Config do

{:ok, rules}
else
{:error, {exception, reason}} ->
{:error, {exception, reason}}

false ->
{:error, rbnf_nofile_error(locale_name)}
{:error, rbnf_nofile_error(locale_name)}
end
end

Expand Down
1 change: 1 addition & 0 deletions lib/cldr/kino/data_table.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule Cldr.Kino.DataTable do
@moduledoc false

@dialyzer {:nowarn_function, [value_to_string: 2]}
def value_to_string(:__column__, value) when is_atom(value) do
value
|> to_string()
Expand Down

0 comments on commit c477397

Please sign in to comment.