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.
This commit is contained in:
Winni Neessen 2024-09-23 11:09:03 +02:00
parent 33d4eb5b21
commit 9a9e0c936d
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -2100,10 +2100,6 @@ func handleTestServerConnection(connection net.Conn, featureSet string, failRese
for { for {
data, err = reader.ReadString('\n') data, err = reader.ReadString('\n')
if err != nil { if err != nil {
if errors.Is(err, io.EOF) {
break
}
fmt.Println("Error reading data:", err)
break break
} }