fix: added an empty string check to val

Signed-off-by: Jesse Simpson <jesse.simpson@camunda.com>
pull/12812/head
Jesse Simpson 2 years ago committed by Jesse Simpson
parent de0d397957
commit 415e3ce9db
No known key found for this signature in database
GPG Key ID: 237495C89AB0AAFC

@ -300,7 +300,7 @@ func coalesceTablesFullKey(printf printFn, dst, src map[string]interface{}, pref
} else { } else {
printf("warning: cannot overwrite table with non table for %s (%v)", fullkey, val) printf("warning: cannot overwrite table with non table for %s (%v)", fullkey, val)
} }
} else if istable(dv) && val != nil && len(dv.(map[string]interface{})) > 0 { } else if istable(dv) && val != nil && val != "" && len(dv.(map[string]interface{})) > 0 {
printf("warning: destination for %s is a table. Ignoring non-table value (%v)", fullkey, val) printf("warning: destination for %s is a table. Ignoring non-table value (%v)", fullkey, val)
} }
} }

Loading…
Cancel
Save