edit diff BUGFIX remove invalid assert
Refs
@@ -1728,15 +1728,12 @@ reapply:
if ((err_info = sr_edit_find(edit_node->child, child, EDIT_DELETE, 0, NULL, &edit_match, NULL))) {
return err_info;
}
- if (!edit_match) {
- assert(diff_parent);
- err_info = sr_edit_apply_r(&match->child, match, child, EDIT_DELETE, diff_parent, diff_root, flags, change);
- if (err_info) {
+ if (!edit_match && (err_info = sr_edit_apply_r(&match->child, match, child, EDIT_DELETE, diff_parent,
+ diff_root, flags, change))) {
return err_info;
}
}
}
- }
/* apply edit recursively */
LY_TREE_FOR(sr_lyd_child(edit_node, 1), child) {
