aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-01-23 16:29:25 +0100
committerLoïc Hoguin <[email protected]>2018-01-23 16:29:25 +0100
commite09ae60d5b4471873219bad055a4104e387b8170 (patch)
tree35f5b37de8c299c735c10be98f8f046b689db01f
parent482de55a96f9b68664a4d8b638f887138e26c5e8 (diff)
downloadcowboy-e09ae60d5b4471873219bad055a4104e387b8170.tar.gz
cowboy-e09ae60d5b4471873219bad055a4104e387b8170.tar.bz2
cowboy-e09ae60d5b4471873219bad055a4104e387b8170.zip
Fix an unused variable warning
-rw-r--r--src/cowboy_req.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl
index bae5e78..f5ea458 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -690,7 +690,7 @@ has_resp_body(_) ->
delete_resp_header(Name, Req=#{resp_headers := RespHeaders}) ->
Req#{resp_headers => maps:remove(Name, RespHeaders)};
%% There are no resp headers so we have nothing to delete.
-delete_resp_header(Name, Req) ->
+delete_resp_header(_, Req) ->
Req.
-spec inform(cowboy:http_status(), req()) -> ok.