From 0421b40d79593b934a0906fad625291e631e9b4e Mon Sep 17 00:00:00 2001 From: Shukun Date: Wed, 12 Feb 2020 20:49:24 +0900 Subject: [PATCH] Remove tautological condition in test/e2e/framework/pod/resource.go --- test/e2e/framework/pod/resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/pod/resource.go b/test/e2e/framework/pod/resource.go index 4d8e484781f..7e16022d426 100644 --- a/test/e2e/framework/pod/resource.go +++ b/test/e2e/framework/pod/resource.go @@ -520,7 +520,7 @@ func getPodLogsInternal(c clientset.Interface, namespace, podName, containerName if err != nil { return "", err } - if err == nil && strings.Contains(string(logs), "Internal Error") { + if strings.Contains(string(logs), "Internal Error") { return "", fmt.Errorf("Fetched log contains \"Internal Error\": %q", string(logs)) } return string(logs), err