From e16d2ca86a30b98c5b9db9daa3a7a2aa1ee344b4 Mon Sep 17 00:00:00 2001 From: Marc Worrell Date: Tue, 7 Jan 2025 10:01:41 +0100 Subject: [PATCH] Simpler --- src/gen_smtp_server_session.erl | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/gen_smtp_server_session.erl b/src/gen_smtp_server_session.erl index b0e44c8..bd90e56 100644 --- a/src/gen_smtp_server_session.erl +++ b/src/gen_smtp_server_session.erl @@ -1358,13 +1358,9 @@ check_bare_crlf(Binary, _Prev, Op, Offset) -> end end. -try_send(#state{transport = Transport, socket = Sock} = St, Data) -> - case Transport:send(Sock, Data) of - ok -> - ok; - {error, _Err} -> - ok - end. +try_send(#state{transport = Transport, socket = Sock}, Data) -> + Transport:send(Sock, Data), + ok. send(#state{transport = Transport, socket = Sock} = St, Data) -> case Transport:send(Sock, Data) of