aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-02-27 16:42:17 +0100
committerLoïc Hoguin <[email protected]>2020-02-27 16:42:17 +0100
commitaaf29783cc1932bcc167c63cdcd064cd09b07be2 (patch)
treeb549b821074e1466e52926dbdd8f2c4fdde8826e
parentf0b64ece629e66590d2f6964d3f3102fc1cf11b8 (diff)
downloadgun-aaf29783cc1932bcc167c63cdcd064cd09b07be2.tar.gz
gun-aaf29783cc1932bcc167c63cdcd064cd09b07be2.tar.bz2
gun-aaf29783cc1932bcc167c63cdcd064cd09b07be2.zip
Remove two unnecessary clauses
As reported by Dialyzer.
-rw-r--r--src/gun_http2.erl2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index 64850fa..76ba75c 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -154,7 +154,6 @@ parse(Data, State0=#http2_state{status=preface, http2_machine=HTTP2Machine},
case cow_http2:parse(Data, MaxFrameSize) of
{ok, Frame, Rest} when element(1, Frame) =:= settings ->
case frame(State0#http2_state{status=connected}, Frame, EvHandler, EvHandlerState0) of
- Close = {close, _} -> Close;
Error = {{error, _}, _} -> Error;
{State, EvHandlerState} -> parse(Rest, State, EvHandler, EvHandlerState)
end;
@@ -177,7 +176,6 @@ parse(Data, State0=#http2_state{status=Status, http2_machine=HTTP2Machine, strea
case cow_http2:parse(Data, MaxFrameSize) of
{ok, Frame, Rest} ->
case frame(State0, Frame, EvHandler, EvHandlerState0) of
- Close = {close, _} -> Close;
Error = {{error, _}, _} -> Error;
{State, EvHandlerState} -> parse(Rest, State, EvHandler, EvHandlerState)
end;