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

Fix a unused warning

This commit is contained in:
Loïc Hoguin 2017-10-31 16:50:17 +00:00
parent d41f2914b0
commit 4e85ad76a0
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -48,7 +48,7 @@ init_commands(_, _, State=#state{test=shutdown_timeout_on_socket_close}) ->
[{headers, 200, #{}}, {spawn, Spawn, 2000}];
init_commands(_, _, State=#state{test=terminate_on_switch_protocol}) ->
[{switch_protocol, #{}, ?MODULE, State}];
init_commands(_, _, State=#state{test=terminate_on_stop}) ->
init_commands(_, _, #state{test=terminate_on_stop}) ->
[{response, 204, #{}, <<>>}];
init_commands(_, _, _) ->
[{headers, 200, #{}}].