From 9a9e0c936d23bca6f1789f2add62d4a3666452b6 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Mon, 23 Sep 2024 11:09:03 +0200 Subject: [PATCH] Remove redundant error handling in test code The check for io.EOF and the associated print statement were unnecessary because the loop breaks on any error. This change simplifies the error handling logic in the `client_test.go` file and avoids redundant code. --- client_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client_test.go b/client_test.go index 3d50a2d..fdc486a 100644 --- a/client_test.go +++ b/client_test.go @@ -2100,10 +2100,6 @@ func handleTestServerConnection(connection net.Conn, featureSet string, failRese for { data, err = reader.ReadString('\n') if err != nil { - if errors.Is(err, io.EOF) { - break - } - fmt.Println("Error reading data:", err) break }