mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
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:
parent
e115d5234c
commit
a4f98e4c1e
@ -434,7 +434,7 @@ func (t *unstructuredList) ConvertToNative(typeDesc reflect.Type) (interface{},
|
|||||||
for _, e := range t.elements {
|
for _, e := range t.elements {
|
||||||
s, ok := e.(string)
|
s, ok := e.(string)
|
||||||
if !ok {
|
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)
|
result = append(result, s)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user