Remove unused GroupsError

This commit is contained in:
Girish Ramakrishnan
2019-10-22 16:26:15 -07:00
parent 332f2e7c10
commit 1b594d3e50
2 changed files with 0 additions and 3 deletions

View File

@@ -86,7 +86,6 @@ function remove(req, res, next) {
groups.remove(req.params.groupId, function (error) {
if (error && error.reason === GroupsError.NOT_FOUND) return next(new HttpError(404, 'Group not found'));
if (error && error.reason === GroupsError.NOT_ALLOWED) return next(new HttpError(409, 'Group deletion not allowed'));
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(204));