Skip to content

Commit a0039a6

Browse files
committed
fix: silence unused-variable warning in TestServer.Plug.call/2
The opts arg is intentionally unused (we look up the server via persistent_term instead). Underscore-prefix it so --warnings-as-errors on our code (which CI now does, not --all-warnings on deps) doesn't fail the build. Discovered by the GitHub Actions run that actually exercises the --warnings-as-errors flag end-to-end (local runs had this warning swallowed somehow).
1 parent baa4d3a commit a0039a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/support/test_server.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ defmodule AdoCli.TestServer do
9090
def init(opts), do: opts
9191

9292
@impl true
93-
def call(conn, opts) do
93+
def call(conn, _opts) do
9494
# The TestServer GenServer registers itself in :persistent_term
9595
# during init. We look it up here. This works because Bandit
9696
# calls call/2 in the same process tree (a worker of the TestServer

0 commit comments

Comments
 (0)