Skip to content

Commit 40b7464

Browse files
committed
Fixes indentation around in the URI module (#4715)
1 parent c8b18a4 commit 40b7464

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/elixir/lib/uri.ex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ defmodule URI do
228228
@spec char_unreserved?(char) :: boolean
229229
def char_unreserved?(char) when char in 0..0x10ffff do
230230
char in ?0..?9 or
231-
char in ?a..?z or
232-
char in ?A..?Z or
233-
char in '~_-.'
231+
char in ?a..?z or
232+
char in ?A..?Z or
233+
char in '~_-.'
234234
end
235235

236236
@doc """
@@ -535,10 +535,10 @@ defimpl String.Chars, for: URI do
535535
authority = extract_authority(uri)
536536

537537
if(scheme, do: scheme <> ":", else: "") <>
538-
if(authority, do: "//" <> authority, else: "") <>
539-
if(path, do: path, else: "") <>
540-
if(query, do: "?" <> query, else: "") <>
541-
if(fragment, do: "#" <> fragment, else: "")
538+
if(authority, do: "//" <> authority, else: "") <>
539+
if(path, do: path, else: "") <>
540+
if(query, do: "?" <> query, else: "") <>
541+
if(fragment, do: "#" <> fragment, else: "")
542542
end
543543

544544
defp extract_authority(%{host: nil, authority: authority}) do
@@ -550,7 +550,7 @@ defimpl String.Chars, for: URI do
550550
# in it only if it's an IPv6 or "IPvFuture" address), so if there's a colon
551551
# in the host we can safely surround it with [].
552552
if(userinfo, do: userinfo <> "@", else: "") <>
553-
if(String.contains?(host, ":"), do: "[" <> host <> "]", else: host) <>
554-
if(port, do: ":" <> Integer.to_string(port), else: "")
553+
if(String.contains?(host, ":"), do: "[" <> host <> "]", else: host) <>
554+
if(port, do: ":" <> Integer.to_string(port), else: "")
555555
end
556556
end

0 commit comments

Comments
 (0)