Skip to content

Commit 772c525

Browse files
committed
chore: Format code.
1 parent 4295c51 commit 772c525

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

lib/http/abort_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ defmodule HTTP.AbortController do
6666
# The actual abort status would be observed by the request's Task.await result.
6767
:ok
6868
end
69-
end
69+
end

lib/http/promise.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule HTTP.Promise do
33
Represents an asynchronous HTTP operation, similar to a JavaScript Promise.
44
It wraps an underlying `Task` and provides an `await` function.
55
"""
6-
6+
77
defstruct task: nil
88

99
@type t :: %__MODULE__{task: Task.t()}
@@ -72,4 +72,4 @@ defmodule HTTP.Promise do
7272
defp handle_chained_result({:error, _} = result), do: result
7373
# Wrap non-tuple results in :ok
7474
defp handle_chained_result(other), do: {:ok, other}
75-
end
75+
end

lib/http/request.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ defmodule HTTP.Request do
7070
defp to_body(body) when is_list(body), do: body
7171
# Convert other types to string then charlist
7272
defp to_body(other), do: String.to_charlist(to_string(other))
73-
end
73+
end

lib/http/response.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ defmodule HTTP.Response do
3535
{:error, error} -> {:error, error}
3636
end
3737
end
38-
end
38+
end

test/http/abort_controller_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ defmodule HTTP.AbortControllerTest do
1313
refute HTTP.AbortController.aborted?(controller)
1414
end
1515
end
16-
end
16+
end

test/http/promise_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ defmodule HTTP.PromiseTest do
1515
assert {:ok, %HTTP.Response{status: 200}} = HTTP.Promise.await(promise)
1616
end
1717
end
18-
end
18+
end

test/http/request_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ defmodule HTTP.RequestTest do
3838
assert request_tuple == {~c"http://example.com", [{~c"Accept", ~c"application/json"}]}
3939
end
4040
end
41-
end
41+
end

test/http/response_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ defmodule HTTP.ResponseTest do
3232
assert {:error, _reason} = HTTP.Response.json(response)
3333
end
3434
end
35-
end
35+
end

test/http_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,4 @@ defmodule HTTPTest do
209209
assert {:ok, %HTTP.Response{status: 200}} = resp
210210
end
211211
end
212-
end
212+
end

0 commit comments

Comments
 (0)