0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix an unused variable warning

This commit is contained in:
Loïc Hoguin 2018-01-23 16:29:25 +01:00
parent 482de55a96
commit e09ae60d5b
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -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.