From ee4f4d8af1603fe2565b6082aa7d3dd4c0b3520f Mon Sep 17 00:00:00 2001 From: Amir Malka Date: Tue, 28 Jun 2022 11:31:11 +0300 Subject: [PATCH] remove error when reading yaml Remove an error if we try to read YAML file which is not a map[string]interface{} --- core/cautils/fileutils.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/cautils/fileutils.go b/core/cautils/fileutils.go index 1def07c0..a782d040 100644 --- a/core/cautils/fileutils.go +++ b/core/cautils/fileutils.go @@ -148,8 +148,6 @@ func readYamlFile(yamlFile []byte) ([]workloadinterface.IMetadata, []error) { yamlObjs = append(yamlObjs, o) } } - } else { - errs = append(errs, fmt.Errorf("failed to convert yaml file to map[string]interface, file content: %v", j)) } }