From 9ed7608421c0ea242be5955fd253a1e1d7c482b3 Mon Sep 17 00:00:00 2001 From: muxator Date: Wed, 29 Aug 2018 02:41:14 +0200 Subject: [PATCH] db/GroupManager: early return, no functional changes --- src/node/db/GroupManager.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/node/db/GroupManager.js b/src/node/db/GroupManager.js index 118c044bb..c80d8c06e 100644 --- a/src/node/db/GroupManager.js +++ b/src/node/db/GroupManager.js @@ -62,13 +62,12 @@ exports.deleteGroup = function(groupID, callback) if(_group == null) { callback(new customError("groupID does not exist","apierror")); + return; } + //group exists, everything is fine - else - { - group = _group; - callback(); - } + group = _group; + callback(); }); }, //iterate trough all pads of this groups and delete them