diff --git a/src/node/db/API.js b/src/node/db/API.js index c420b9994..b47c860fe 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -442,11 +442,10 @@ exports.setHTML = function(padID, html, callback) if(e){ callback(new customError("HTML is malformed","apierror")); return; - }else{ - //update the clients on the pad - padMessageHandler.updatePadClients(pad, callback); - return; } + + //update the clients on the pad + padMessageHandler.updatePadClients(pad, callback); }); }); }