fix: remove excessive quoting from error messages

This commit is contained in:
Mauren Berti
2024-01-29 22:57:30 -05:00
parent 6c1fea79ed
commit 14c091aec7
2 changed files with 2 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ func findConfigMapArgs(m *types.Kustomization, name, namespace string) (*types.C
})
if cmIndex == -1 {
return nil, fmt.Errorf("unable to find ConfigMap with name '%q'", name)
return nil, fmt.Errorf("unable to find ConfigMap with name %q", name)
}
return &m.ConfigMapGenerator[cmIndex], nil

View File

@@ -150,7 +150,7 @@ func findSecretArgs(m *types.Kustomization, name, namespace string) (*types.Secr
})
if cmIndex == -1 {
return nil, fmt.Errorf("unable to find Secret with name '%q'", name)
return nil, fmt.Errorf("unable to find Secret with name %q", name)
}
return &m.SecretGenerator[cmIndex], nil