1
0
mirror of https://github.com/coreos/ignition.git synced 2026-02-06 18:47:54 +01:00

config/merge: use reflect.Value.IsZero() now that we have Go 1.13

This commit is contained in:
Benjamin Gilbert
2021-02-19 18:39:43 -05:00
parent 8ef8dc0c57
commit f946e0df03

View File

@@ -339,7 +339,7 @@ func transcribe(fromPath path.ContextPath, toPath path.ContextPath, value reflec
kind := value.Kind()
switch {
case util.IsPrimitive(kind):
if value.Interface() == reflect.Zero(value.Type()).Interface() {
if value.IsZero() {
return false
}
add(fromPath, toPath)