Skip to content

Commit f06716e

Browse files
authored
Merge pull request kubernetes#129251 from alingse/patch-1
fix check errRaw != nil but return a nil value error err
2 parents 1b4c348 + b963e15 commit f06716e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/framework/kubelet/stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ func GetKubeletHeapStats(ctx context.Context, c clientset.Interface, nodeName st
325325
}
326326
raw, errRaw := client.Raw()
327327
if errRaw != nil {
328-
return "", err
328+
return "", errRaw
329329
}
330330
kubeletstatsv1alpha1 := string(raw)
331331
// Only dumping the runtime.MemStats numbers to avoid polluting the log.

0 commit comments

Comments
 (0)