mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 10:04:43 +08:00
fixing delete splat
This commit is contained in:
@@ -503,7 +503,7 @@ func deleteProperty(cmd *cobra.Command, args []string) error {
|
||||
var updateData = func(dataBucket interface{}, currentIndex int) (interface{}, error) {
|
||||
if updateAll || currentIndex == docIndexInt {
|
||||
log.Debugf("Deleting path in doc %v", currentIndex)
|
||||
return deleteChildValue(dataBucket, paths), nil
|
||||
return deleteChildValue(dataBucket, paths)
|
||||
}
|
||||
return dataBucket, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user