aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-10-01 12:52:25 +0200
committerLoïc Hoguin <[email protected]>2018-10-01 12:52:25 +0200
commitafc6745d3f3070418204cd5ce97adb592129777a (patch)
treecdaeb116929a362a0a97b1983112c74cfd0f3652
parentaf7629933df8e7bc151ef230d25276d8bbb907e2 (diff)
downloadgun-afc6745d3f3070418204cd5ce97adb592129777a.tar.gz
gun-afc6745d3f3070418204cd5ce97adb592129777a.tar.bz2
gun-afc6745d3f3070418204cd5ce97adb592129777a.zip
Remove unreachable clauses pointed out by Dialyzer
-rw-r--r--src/gun_http2.erl4
1 files changed, 1 insertions, 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.