Commit 01a2df51 authored by Tristan Cavelier's avatar Tristan Cavelier

Lines replaced by a function call

parent 090573c4
......@@ -252,11 +252,10 @@ jIO.addStorageType('revision', function (spec, my) {
"rev": doc._rev,
"status": "missing"
});
selected_node.children.unshift({
"rev": doc._rev,
"status": "missing",
"children": []
});
selected_node.children.unshift(priv.createDocumentTreeNode(
doc._rev,
"missing"
));
selected_node = selected_node.children[0];
}
}
......@@ -285,11 +284,10 @@ jIO.addStorageType('revision', function (spec, my) {
"status": flag
});
selected_node.children.unshift({
"rev": next_rev.join('-'),
"status": flag,
"children": []
});
selected_node.children.unshift(priv.createDocumentTreeNode(
next_rev.join('-'),
flag
));
return revs_info;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment