Skip to content

Commit fb6f5d7

Browse files
authored
Merge pull request kubernetes#88070 from sshukun/remove-tautological-condition
Remove tautological condition in test/e2e/framework/pod/resource.go
2 parents 177506d + 0421b40 commit fb6f5d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/framework/pod/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ func getPodLogsInternal(c clientset.Interface, namespace, podName, containerName
520520
if err != nil {
521521
return "", err
522522
}
523-
if err == nil && strings.Contains(string(logs), "Internal Error") {
523+
if strings.Contains(string(logs), "Internal Error") {
524524
return "", fmt.Errorf("Fetched log contains \"Internal Error\": %q", string(logs))
525525
}
526526
return string(logs), err

0 commit comments

Comments
 (0)