aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/ftp/ftp.erl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2016-10-19 12:04:11 +0200
committerKostis Sagonas <[email protected]>2016-10-19 12:04:11 +0200
commite9da526e4cacffff5d62fd8741284e36ca83843e (patch)
treefabf3ae5c692fffb254ed03d4e5e80c52bf0b921 /lib/inets/src/ftp/ftp.erl
parent826ebfba7b0624e52015fe6882aef3db758b9d03 (diff)
downloadotp-e9da526e4cacffff5d62fd8741284e36ca83843e.tar.gz
otp-e9da526e4cacffff5d62fd8741284e36ca83843e.tar.bz2
otp-e9da526e4cacffff5d62fd8741284e36ca83843e.zip
Eliminate dialyzer warning about unreachable clause
Diffstat (limited to 'lib/inets/src/ftp/ftp.erl')
-rw-r--r--lib/inets/src/ftp/ftp.erl3
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.