Simplify checkCgroups function call

Co-authored-by: Brian Downs <brian.downs@gmail.com>
pull/2675/head
Chris Kim 2020-12-09 11:59:54 -08:00 committed by Chris Kim
parent 81256683c1
commit b03ddade8e
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ func addFeatureGate(current, new string) string {
return current + "," + new
}
func checkCgroups() (kubeletRoot string, runtimeRoot string, hasCFS bool, hasPIDs bool) {
func checkCgroups() (kubeletRoot, runtimeRoot string, hasCFS, hasPIDs bool) {
f, err := os.Open("/proc/self/cgroup")
if err != nil {
return "", "", false, false