Skip to content

Commit

Permalink
error strings should not be capitalized
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Giudici <[email protected]>
  • Loading branch information
fgiudici committed Nov 25, 2024
1 parent 2b69612 commit 84d3b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func JSONObjectToYamlBytes(object map[string]runtime.RawExtension) ([]byte, erro
// This creates a parent "root" key to facilitate parsing the schemaless map
mapSlice := yaml.JSONObjectToYAMLObject(map[string]interface{}{"root": object})
if len(mapSlice) <= 0 {
return nil, errors.New("Could not convert json object to yaml")
return nil, errors.New("could not convert json object to yaml")
}

// Just marshal the value of the "root" key
Expand Down

0 comments on commit 84d3b51

Please sign in to comment.