From a793066e73524ced3101551178c377ef47fe62cc Mon Sep 17 00:00:00 2001 From: Anne Lau Date: Tue, 19 Apr 2022 15:06:54 -0700 Subject: [PATCH] Remove comments Add co-author to PR. Co-authored-by: sarjamil --- kyaml/yaml/rnode.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kyaml/yaml/rnode.go b/kyaml/yaml/rnode.go index 2ce5a5a860..07bb8a0e1c 100644 --- a/kyaml/yaml/rnode.go +++ b/kyaml/yaml/rnode.go @@ -1206,12 +1206,9 @@ func (rn *RNode) GetString(path string) (string, error) { // rather than string, we do conversion from Nodes to Go types and back // to nodes. We should figure out how to do replacement using raw nodes, // assuming we keep the var feature in kustomize. -// The other end of this is: refvar.go:updateNodeValue.ß +// The other end of this is: refvar.go:updateNodeValue. func (rn *RNode) GetFieldValue(path string) (interface{}, error) { fields := convertSliceIndex(utils.SmarterPathSplitter(path, ".")) - fields2 := utils.SmarterPathSplitter(path, ".") - fields3 := convertSliceIndex(strings.Split(path, ".")) - fmt.Println(fields2, fields3) rn, err := rn.Pipe(Lookup(fields...)) if err != nil { return nil, err