1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2025-07-25 07:58:07 +00:00

remove redundant type conversion

This commit is contained in:
mzmuer 2022-10-24 15:52:51 +08:00
parent 44eef9289e
commit 2a76893bc3

View File

@ -126,7 +126,7 @@ func getConfigFilePath(benchmarkVersion string, filename string) (path string, e
glog.V(2).Info(fmt.Sprintf("Looking for config specific CIS version %q", benchmarkVersion))
path = filepath.Join(cfgDir, benchmarkVersion)
file := filepath.Join(path, string(filename))
file := filepath.Join(path, filename)
glog.V(2).Info(fmt.Sprintf("Looking for file: %s", file))
if _, err := os.Stat(file); err != nil {