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) { ...@@ -252,11 +252,10 @@ jIO.addStorageType('revision', function (spec, my) {
"rev": doc._rev, "rev": doc._rev,
"status": "missing" "status": "missing"
}); });
selected_node.children.unshift({ selected_node.children.unshift(priv.createDocumentTreeNode(
"rev": doc._rev, doc._rev,
"status": "missing", "missing"
"children": [] ));
});
selected_node = selected_node.children[0]; selected_node = selected_node.children[0];
} }
} }
...@@ -285,11 +284,10 @@ jIO.addStorageType('revision', function (spec, my) { ...@@ -285,11 +284,10 @@ jIO.addStorageType('revision', function (spec, my) {
"status": flag "status": flag
}); });
selected_node.children.unshift({ selected_node.children.unshift(priv.createDocumentTreeNode(
"rev": next_rev.join('-'), next_rev.join('-'),
"status": flag, flag
"children": [] ));
});
return revs_info; return revs_info;
}; };
...@@ -881,4 +879,4 @@ jIO.addStorageType('revision', function (spec, my) { ...@@ -881,4 +879,4 @@ jIO.addStorageType('revision', function (spec, my) {
}; };
return that; return that;
}); });
\ No newline at end of file
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