From afc6745d3f3070418204cd5ce97adb592129777a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 1 Oct 2018 12:52:25 +0200 Subject: Remove unreachable clauses pointed out by Dialyzer --- src/gun_http2.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gun_http2.erl b/src/gun_http2.erl index f017c54..99776c6 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -538,9 +538,7 @@ terminate(State=#http2_state{socket=Socket, transport=Transport}, StreamID, Reas end. terminate_reason({connection_error, Reason, _}) -> Reason; -terminate_reason({stop, _, _}) -> no_error; -terminate_reason({socket_error, _, _}) -> internal_error; -terminate_reason({internal_error, _, _}) -> internal_error. +terminate_reason({stop, _, _}) -> no_error. %% Stream functions. -- cgit v1.2.3