Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Adzz committed Feb 19, 2025
1 parent ad5136a commit ad51317
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/phoenix/controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ defmodule Phoenix.Controller do

def put_view(%Plug.Conn{} = conn, module) do
raise(AlreadySentError, """
The response was already sent.
the response was already sent.
Status code: `#{conn.status}`
Request path: `#{conn.request_path}`
Expand Down Expand Up @@ -589,7 +589,7 @@ defmodule Phoenix.Controller do

def put_new_view(%Plug.Conn{} = conn, module) do
raise(AlreadySentError, """
The response was already sent.
the response was already sent.
Status code: `#{conn.status}`
Request path: `#{conn.request_path}`
Expand Down Expand Up @@ -661,7 +661,7 @@ defmodule Phoenix.Controller do
put_private_layout(conn, :phoenix_layout, :replace, layout)
else
raise AlreadySentError, """
The response was already sent.
the response was already sent.
Status code: `#{conn.status}`
Request path: `#{conn.request_path}`
Expand Down Expand Up @@ -745,7 +745,7 @@ defmodule Phoenix.Controller do
when (is_tuple(layout) and tuple_size(layout) == 2) or is_list(layout) or layout == false do
unless state in @unsent do
raise(AlreadySentError, """
The response was already sent.
the response was already sent.
Status code: `#{conn.status}`
Request path: `#{conn.request_path}`
Expand Down Expand Up @@ -794,7 +794,7 @@ defmodule Phoenix.Controller do
put_private_layout(conn, :phoenix_root_layout, :replace, layout)
else
raise AlreadySentError, """
The response was already sent.
the response was already sent.
Status code: `#{conn.status}`
Request path: `#{conn.request_path}`
Expand Down Expand Up @@ -827,7 +827,7 @@ defmodule Phoenix.Controller do

def put_layout_formats(%Plug.Conn{} = conn, _formats) do
raise(AlreadySentError, """
The response was already sent.
the response was already sent.
Status code: `#{conn.status}`
Request path: `#{conn.request_path}`
Expand Down
2 changes: 1 addition & 1 deletion test/phoenix/controller/controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ defmodule Phoenix.Controller.ControllerTest do
assert layout(conn) == {AppView, :print}

message = """
The response was already sent.
the response was already sent.
Status code: `200`
Request path: `/`
Expand Down

0 comments on commit ad51317

Please sign in to comment.