db/API.js: early return, no functional changes

pull/3478/head
muxator 2018-08-29 02:13:06 +02:00
parent fef57efd46
commit 610a6db8c8
1 changed files with 10 additions and 10 deletions

View File

@ -399,10 +399,11 @@ exports.getHTML = function(padID, rev, callback)
var data = {html: html}; var data = {html: html};
callback(null, data); callback(null, data);
}); });
return;
} }
//the client wants the latest text, lets return it to him //the client wants the latest text, lets return it to him
else
{
exportHtml.getPadHTML(pad, undefined, function (err, html) exportHtml.getPadHTML(pad, undefined, function (err, html)
{ {
if(ERR(err, callback)) return; if(ERR(err, callback)) return;
@ -411,7 +412,6 @@ exports.getHTML = function(padID, rev, callback)
var data = {html: html}; var data = {html: html};
callback(null, data); callback(null, data);
}); });
}
}); });
} }