1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-23 00:28:07 +00:00

Remove the old lines of fmt.Sprintf in cmd/common.go

This commit is contained in:
Philippe ALEXANDRE 2018-03-27 15:33:01 +02:00
parent d6c16f7563
commit f091c8adea

View File

@ -48,10 +48,8 @@ func runChecks(t check.NodeType) {
} }
ver := getKubeVersion() ver := getKubeVersion()
// path := fmt.Sprintf("%s/%s", cfgDir, ver)
path := filepath.Join(cfgDir, ver) path := filepath.Join(cfgDir, ver)
// def := fmt.Sprintf("%s/%s", path, file)
def := filepath.Join(path, file) def := filepath.Join(path, file)
in, err := ioutil.ReadFile(def) in, err := ioutil.ReadFile(def)