diff options
author | Kostis Sagonas <[email protected]> | 2016-10-19 12:04:11 +0200 |
---|---|---|
committer | Kostis Sagonas <[email protected]> | 2016-10-19 12:04:11 +0200 |
commit | e9da526e4cacffff5d62fd8741284e36ca83843e (patch) | |
tree | fabf3ae5c692fffb254ed03d4e5e80c52bf0b921 /lib/inets | |
parent | 826ebfba7b0624e52015fe6882aef3db758b9d03 (diff) | |
download | otp-e9da526e4cacffff5d62fd8741284e36ca83843e.tar.gz otp-e9da526e4cacffff5d62fd8741284e36ca83843e.tar.bz2 otp-e9da526e4cacffff5d62fd8741284e36ca83843e.zip |
Eliminate dialyzer warning about unreachable clause
Diffstat (limited to 'lib/inets')
-rw-r--r-- | lib/inets/src/ftp/ftp.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/inets/src/ftp/ftp.erl b/lib/inets/src/ftp/ftp.erl index 6868b75eff..b19b19f063 100644 --- a/lib/inets/src/ftp/ftp.erl +++ b/lib/inets/src/ftp/ftp.erl @@ -2368,8 +2368,7 @@ activate_ctrl_connection(#state{csock = Socket}) -> self() ! {socket_type(Socket), unwrap_socket(Socket), <<>>}. unwrap_socket({tcp,Socket}) -> Socket; -unwrap_socket({ssl,Socket}) -> Socket; -unwrap_socket(Socket) -> Socket. +unwrap_socket({ssl,Socket}) -> Socket. socket_type({tcp,_Socket}) -> tcp; socket_type({ssl,_Socket}) -> ssl. |