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)) } }