summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-02-27 23:16:42 +0600
committerDaniil Baturin <daniil@baturin.org>2015-02-27 23:16:42 +0600
commite28406576c50a4814fb9254fefed11292dfedb18 (patch)
treeafcdba18b1f4755be01da3c14628fbf2ca762652
parent7364faa7d1273e3bfa6703780a659ec9adbf797c (diff)
downloadvyconf-e28406576c50a4814fb9254fefed11292dfedb18.tar.gz
vyconf-e28406576c50a4814fb9254fefed11292dfedb18.zip
Missing expression in delete_child.
This is embarassing.
-rw-r--r--src/vytree.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vytree.ml b/src/vytree.ml
index 3b6819f..1a380e3 100644
--- a/src/vytree.ml
+++ b/src/vytree.ml
@@ -92,4 +92,6 @@ let rec delete_child node path =
let next_child = find_child node name in
match next_child with
| None -> raise Nonexistent_path
- | Some next_child' -> delete_child next_child' names
+ | Some next_child' ->
+ let new_node = delete_child next_child' names in
+ replace_child node new_node