diff options
author | Loïc Hoguin <[email protected]> | 2018-10-01 12:52:25 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-10-01 12:52:25 +0200 |
commit | afc6745d3f3070418204cd5ce97adb592129777a (patch) | |
tree | cdaeb116929a362a0a97b1983112c74cfd0f3652 /src | |
parent | af7629933df8e7bc151ef230d25276d8bbb907e2 (diff) | |
download | gun-afc6745d3f3070418204cd5ce97adb592129777a.tar.gz gun-afc6745d3f3070418204cd5ce97adb592129777a.tar.bz2 gun-afc6745d3f3070418204cd5ce97adb592129777a.zip |
Remove unreachable clauses pointed out by Dialyzer
Diffstat (limited to 'src')
-rw-r--r-- | src/gun_http2.erl | 4 |
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. |