Skip to content

Commit

Permalink
Negating HEX_UNSAFE_REGISTRY value #285 (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashman authored and ericmj committed Sep 7, 2016
1 parent f28d1ee commit 967c412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hex/state.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ defmodule Hex.State do
https_proxy: load_config(config, ["https_proxy", "HTTPS_PROXY"], :https_proxy),
offline?: load_config(config, ["HEX_OFFLINE"], :offline) |> to_boolean |> default(false),
check_cert?: load_config(config, ["HEX_UNSAFE_HTTPS"], :unsafe_https) |> to_boolean |> default(false) |> Kernel.not,
check_registry?: load_config(config, ["HEX_UNSAFE_REGISTRY"], :unsafe_registry) |> to_boolean |> default(true),
check_registry?: load_config(config, ["HEX_UNSAFE_REGISTRY"], :unsafe_registry) |> to_boolean |> default(false) |> Kernel.not,
hexpm_pk: @hexpm_pk,
registry_updated: false,
httpc_profile: :hex,
Expand Down

0 comments on commit 967c412

Please sign in to comment.