Commit 3a82e65b authored by Tristan Cavelier's avatar Tristan Cavelier

gidstorage fix jslint errors

parent f6093f62
......@@ -313,7 +313,7 @@
"query": complex_query,
"wildcard_character": null
}, function (response) {
var doc, update_method = method;
var update_method = method;
if (response.total_rows !== 0) {
if (method === 'post') {
return that.error({
......@@ -323,10 +323,9 @@
"message": "Cannot post document",
"reason": "Document already exist"
});
} else {
doc = command.cloneDoc();
doc._id = response.rows[0].id;
}
doc = command.cloneDoc();
doc._id = response.rows[0].id;
} else {
doc = command.cloneDoc();
delete doc._id;
......
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