From aaf29783cc1932bcc167c63cdcd064cd09b07be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 27 Feb 2020 16:42:17 +0100 Subject: Remove two unnecessary clauses As reported by Dialyzer. --- src/gun_http2.erl | 2 -- 1 file changed, 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; -- cgit v1.2.3