mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 08:09:58 +00:00
Come out of loop when omitempty is true
This commit is contained in:
parent
9b3db701a1
commit
4bfa4d8b30
@ -256,6 +256,7 @@ func fieldInfoFromField(structType reflect.Type, field int) *fieldInfo {
|
|||||||
for i := range items {
|
for i := range items {
|
||||||
if items[i] == "omitempty" {
|
if items[i] == "omitempty" {
|
||||||
info.omitempty = true
|
info.omitempty = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user