Update staging/src/k8s.io/apiserver/pkg/cel/common/values.go

Co-authored-by: Alvaro Aleman <alvaroaleman@users.noreply.github.com>
This commit is contained in:
Joe Betz 2023-04-25 14:22:01 -07:00 committed by GitHub
parent e115d5234c
commit a4f98e4c1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -434,7 +434,7 @@ func (t *unstructuredList) ConvertToNative(typeDesc reflect.Type) (interface{},
for _, e := range t.elements {
s, ok := e.(string)
if !ok {
return nil, fmt.Errorf("unexpected all elements to be of type string, but got %T", e)
return nil, fmt.Errorf("expected all elements to be of type string, but got %T", e)
}
result = append(result, s)
}