mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 19:23:40 +00:00
cleanup: consistent interface{} and any
This commit is contained in:
parent
0495616230
commit
e1fa1df3ae
@ -73,7 +73,7 @@ func NewCorrelatedObject(new, old interface{}, schema Schema) *CorrelatedObject
|
|||||||
//
|
//
|
||||||
// If listType is map, creates a map representation of the list using the designated
|
// If listType is map, creates a map representation of the list using the designated
|
||||||
// map-keys and caches it for future calls.
|
// map-keys and caches it for future calls.
|
||||||
func (r *CorrelatedObject) correlateOldValueForChildAtNewIndex(index int) any {
|
func (r *CorrelatedObject) correlateOldValueForChildAtNewIndex(index int) interface{} {
|
||||||
oldAsList, ok := r.OldValue.([]interface{})
|
oldAsList, ok := r.OldValue.([]interface{})
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user