remove the uncessary conversion

This commit is contained in:
Jijie Wei
2020-06-22 10:00:22 -07:00
parent 99d2994b98
commit be0f1a7fcb

View File

@@ -99,7 +99,7 @@ func SubstReferringSetter(definitions *yaml.RNode, key string) string {
}
subst := SubstitutionDefinition{}
if err := yaml.Unmarshal([]byte(b), &subst); err != nil {
if err := yaml.Unmarshal(b, &subst); err != nil {
continue
}
// Check the ref in value to see if it contains the setter key