Move yaml check to file in which it is called.

This commit is contained in:
jregan
2018-10-15 09:20:01 -07:00
parent 3b119fb707
commit dcc9c4d31a
2 changed files with 5 additions and 4 deletions

View File

@@ -104,7 +104,3 @@ func getFieldValue(m map[string]interface{}, pathToField []string) (string, erro
return "", fmt.Errorf("%#v is not expected to be a primitive type", typedV)
}
}
func isEmptyYamlError(err error) bool {
return strings.Contains(err.Error(), "is missing in 'null'")
}