From e9da526e4cacffff5d62fd8741284e36ca83843e Mon Sep 17 00:00:00 2001 From: Kostis Sagonas Date: Wed, 19 Oct 2016 12:04:11 +0200 Subject: Eliminate dialyzer warning about unreachable clause --- lib/inets/src/ftp/ftp.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/inets') 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. -- cgit v1.2.3