From 42bc0a59e13d333eb5d0f462cec82173f2ccd5fb Mon Sep 17 00:00:00 2001 From: muxator Date: Wed, 29 Aug 2018 02:09:33 +0200 Subject: [PATCH] db/API.js: early return, no functional changes --- src/node/db/API.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); }); }); }