1
1
Fork 0
mirror of https://github.com/wneessen/go-mail.git synced 2024-12-22 02:30:38 +01:00

Remove redundant error print statements

Removed redundant fmt.Printf error print statements for connection read and write errors. This cleans up the test output and makes error handling more streamlined.
This commit is contained in:
Winni Neessen 2024-09-23 11:26:54 +02:00
parent 774925078a
commit 5503be8451
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -2085,7 +2085,6 @@ func handleTestServerConnection(connection net.Conn, featureSet string, failRese
data, err := reader.ReadString('\n')
if err != nil {
fmt.Printf("unable to read from connection: %s\n", err)
return
}
if !strings.HasPrefix(data, "EHLO") && !strings.HasPrefix(data, "HELO") {
@ -2093,7 +2092,6 @@ func handleTestServerConnection(connection net.Conn, featureSet string, failRese
return
}
if err = writeLine("250-localhost.localdomain\r\n" + featureSet); err != nil {
fmt.Printf("unable to write to connection: %s\n", err)
return
}