mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-07-26 00:18:09 +00:00
remove redundant type conversion
This commit is contained in:
parent
44eef9289e
commit
2a76893bc3
@ -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))
|
glog.V(2).Info(fmt.Sprintf("Looking for config specific CIS version %q", benchmarkVersion))
|
||||||
|
|
||||||
path = filepath.Join(cfgDir, 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))
|
glog.V(2).Info(fmt.Sprintf("Looking for file: %s", file))
|
||||||
|
|
||||||
if _, err := os.Stat(file); err != nil {
|
if _, err := os.Stat(file); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user