Skip to content

Commit

Permalink
Fix Elixir 1.1 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmj committed Aug 22, 2017
1 parent 7d1d8e0 commit 4af77b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mix/tasks/hex.repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ defmodule Mix.Tasks.Hex.Repo do
api_url: nil,
api_key: nil
}
|> Map.merge(Map.new(opts))
|> Map.merge(Enum.into(opts, %{}))
|> Map.put(:public_key, public_key)

read_config()
Expand Down Expand Up @@ -164,7 +164,7 @@ defmodule Mix.Tasks.Hex.Repo do
end

read_config()
|> Map.update!(name, &Map.merge(&1, Map.new(opts)))
|> Map.update!(name, &Map.merge(&1, Enum.into(opts, %{})))
|> Hex.Config.update_repos()
end

Expand Down

0 comments on commit 4af77b7

Please sign in to comment.