From 2a76893bc322ffd532531a732a06f0aa187f8715 Mon Sep 17 00:00:00 2001 From: mzmuer Date: Mon, 24 Oct 2022 15:52:51 +0800 Subject: [PATCH] remove redundant type conversion --- cmd/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/util.go b/cmd/util.go index 2ab2cca..d650d69 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -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 {