Skip to content

Commit

Permalink
refactor cldr_dep/0
Browse files Browse the repository at this point in the history
  • Loading branch information
Schultzer committed May 14, 2024
1 parent 66cb36d commit 6141f31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ defmodule Cldr.Territories.Mixfile do
end

defp cldr_dep() do
case {System.get_env("CLDR_PATH"), System.get_env("CLDR_BRANCH")} do
{nil, nil} -> "~> 2.38"
{path, nil} -> [path: path]
{nil, branch} -> [github: "elixir-cldr/cldr", branch: branch]
if path = System.get_env("CLDR_PATH") do
[path: path]
else
"~> 2.38"
end
end

Expand Down

0 comments on commit 6141f31

Please sign in to comment.