1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-19 18:16:15 +00:00

Don't consider nil values when merging

This commit is contained in:
Darren Shepherd
2018-04-24 00:48:44 -07:00
parent ff84949977
commit 063fbdfa71

View File

@@ -90,13 +90,6 @@ func mergeMetadata(dest map[string]interface{}, src map[string]interface{}) map[
}
func merge(field string, schema *types.Schema, schemas *types.Schemas, dest, src interface{}) interface{} {
if dest == nil {
return src
}
if src == nil {
return dest
}
if isMap(field, schema) {
return src
}