mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +00:00
Fix cluster of silly Go nits.
This commit is contained in:
@@ -121,7 +121,7 @@ func (r *Resource) GetFieldValue(fieldPath string) (string, error) {
|
||||
|
||||
func getFieldValue(m map[string]interface{}, pathToField []string) (string, error) {
|
||||
if len(pathToField) == 0 {
|
||||
return "", fmt.Errorf("Field not found")
|
||||
return "", fmt.Errorf("field not found")
|
||||
}
|
||||
if len(pathToField) == 1 {
|
||||
if v, found := m[pathToField[0]]; found {
|
||||
|
||||
Reference in New Issue
Block a user