remove default callback

This commit is contained in:
Brian Gough 2021-08-03 10:07:00 +01:00
parent 942feb3011
commit 8c791b2938

View file

@ -61,10 +61,7 @@ module.exports = DocstoreClient = {
}, },
peekDoc(project_id, doc_id, qs, callback) { peekDoc(project_id, doc_id, qs, callback) {
if (callback == null) { request.get(
callback = function (error, res, body) {}
}
return request.get(
{ {
url: `http://localhost:${settings.internal.docstore.port}/project/${project_id}/doc/${doc_id}/peek`, url: `http://localhost:${settings.internal.docstore.port}/project/${project_id}/doc/${doc_id}/peek`,
json: true, json: true,