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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user