replace with constant (#1445)

This commit is contained in:
wangxiaoer
2023-05-16 16:41:49 +08:00
committed by GitHub
parent 29c8f16167
commit 968ee5814e
2 changed files with 5 additions and 5 deletions

View File

@@ -127,7 +127,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 {