From 37b376d2d4a35d8f9bd69ea82ca3d5eb9c47e698 Mon Sep 17 00:00:00 2001 From: Francesco Giudici Date: Fri, 15 Nov 2024 18:37:54 +0100 Subject: [PATCH] error strings should not be capitalized Signed-off-by: Francesco Giudici --- pkg/util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/util.go b/pkg/util/util.go index cb3ceba6..e06f94aa 100644 --- a/pkg/util/util.go +++ b/pkg/util/util.go @@ -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