From 5503be8451fae20a55db907b174c5dde1fbc6b84 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Mon, 23 Sep 2024 11:26:54 +0200 Subject: [PATCH] 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. --- client_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/client_test.go b/client_test.go index fdc486a..c891a10 100644 --- a/client_test.go +++ b/client_test.go @@ -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 }