Remove tautological condition in test/e2e/framework/pod/resource.go

This commit is contained in:
Shukun 2020-02-12 20:49:24 +09:00
parent a330defda3
commit 0421b40d79

View File

@ -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