From d76e9412063d7447d12b4fd440d921a5a9f52eb2 Mon Sep 17 00:00:00 2001 From: Raimo Niskanen Date: Thu, 9 Apr 2020 12:40:28 +0200 Subject: Remove dead code --- lib/kernel/src/gen_tcp_socket.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/kernel') diff --git a/lib/kernel/src/gen_tcp_socket.erl b/lib/kernel/src/gen_tcp_socket.erl index fe58cc0cba..4cf804a414 100644 --- a/lib/kernel/src/gen_tcp_socket.erl +++ b/lib/kernel/src/gen_tcp_socket.erl @@ -291,10 +291,10 @@ send(?module_socket(Server, Socket), Data) -> Result = socket_send(Socket, Data, SendTimeout), send_result(Server, Meta, Result) end; - {ok, _Meta} -> + {ok, _BadMeta} -> exit(badarg); {error, _} = Error -> - ?badarg_exit(Error) + Error end. %% send_result(Server, Meta, Result) -> -- cgit v1.2.1