From d28afcb00cbc4680d3092afd73e0c2b5a864dd27 Mon Sep 17 00:00:00 2001 From: rcohencyberarmor Date: Sun, 30 Jul 2023 15:46:54 +0300 Subject: [PATCH] linter correction Signed-off-by: rcohencyberarmor --- core/cautils/fileutils.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/cautils/fileutils.go b/core/cautils/fileutils.go index 8d2c11a4..88892ac0 100644 --- a/core/cautils/fileutils.go +++ b/core/cautils/fileutils.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "encoding/json" - "errors" "fmt" "os" "path/filepath" @@ -109,7 +108,7 @@ func LoadResourcesFromFiles(ctx context.Context, input, rootPath string) (map[st } if len(files) == 0 { logger.L().Ctx(ctx).Error("no files found to scan", helpers.String("input", input)) - return nil, errors.New(fmt.Sprintf(ErrNoFilesToScan, input)) + return nil, fmt.Errorf(ErrNoFilesToScan, input) } workloads, errs := loadFiles(rootPath, files)