Skip to content

Commit 404e95b

Browse files
Joe-nohJosé Valim
authored andcommitted
Fix indent
Signed-off-by: José Valim <[email protected]>
1 parent 30a5914 commit 404e95b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/mix/lib/mix/utils.ex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -408,17 +408,17 @@ defmodule Mix.Utils do
408408
end
409409

410410
defp proxy(proxy) do
411-
uri = URI.parse(proxy)
412-
:ok = :httpc.set_options([{ proxy_scheme(uri.scheme),
413-
{ { uri.host |> String.to_char_list, uri.port }, [] } }], :mix)
414-
end
415-
416-
defp proxy_scheme(scheme) do
417-
case scheme do
418-
"http" -> :proxy
419-
"https" -> :https_proxy
420-
end
421-
end
411+
uri = URI.parse(proxy)
412+
:ok = :httpc.set_options([{proxy_scheme(uri.scheme),
413+
{{String.to_char_list(uri.host), uri.port}, []}}], :mix)
414+
end
415+
416+
defp proxy_scheme(scheme) do
417+
case scheme do
418+
"http" -> :proxy
419+
"https" -> :https_proxy
420+
end
421+
end
422422

423423
defp file?(path) do
424424
File.regular?(path)

0 commit comments

Comments
 (0)