Open hanqingwu opened 5 months ago
pkg/inspect/sysctl_inspect.go
func parseSysctlVal(val []string) string { - if len(val) == 0 && val == nil { + if len(val) == 0 || val == nil { return "" } return val[0]
此处是否应该修订下, 如果val 是空数组,应返回 “”
pkg/inspect/sysctl_inspect.go
此处是否应该修订下, 如果val 是空数组,应返回 “”