db/API.js: early return, no functional changes
parent
fef57efd46
commit
610a6db8c8
|
@ -399,19 +399,19 @@ 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;
|
||||||
{
|
html = "<!DOCTYPE HTML><html><body>" +html; // adds HTML head
|
||||||
if(ERR(err, callback)) return;
|
html += "</body></html>";
|
||||||
html = "<!DOCTYPE HTML><html><body>" +html; // adds HTML head
|
var data = {html: html};
|
||||||
html += "</body></html>";
|
callback(null, data);
|
||||||
var data = {html: html};
|
});
|
||||||
callback(null, data);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue