mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
fix duble error checking
fix whitespace coding convention
This commit is contained in:
parent
8bff85cdb2
commit
f7d8f68c13
3 changed files with 49 additions and 53 deletions
|
@ -105,8 +105,6 @@ exports.deleteGroup = function(groupID, callback)
|
||||||
// remove group from groups entry
|
// remove group from groups entry
|
||||||
db.get("groups", function (err, groups)
|
db.get("groups", function (err, groups)
|
||||||
{
|
{
|
||||||
if(ERR(err, callback)) return;
|
|
||||||
|
|
||||||
if(ERR(err, callback)) return;
|
if(ERR(err, callback)) return;
|
||||||
|
|
||||||
existingGroups = [];
|
existingGroups = [];
|
||||||
|
@ -127,8 +125,6 @@ exports.deleteGroup = function(groupID, callback)
|
||||||
|
|
||||||
db.remove("group2sessions:" + groupID);
|
db.remove("group2sessions:" + groupID);
|
||||||
db.remove("group:" + groupID);
|
db.remove("group:" + groupID);
|
||||||
|
|
||||||
|
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
], function(err)
|
], function(err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue