From fbeefeca7d83b13092bbb3bcfcc6ed6592d4ad8a Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 11 Feb 2016 10:52:31 +0100 Subject: [PATCH] setGroups() has no result --- src/groups.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/groups.js b/src/groups.js index ff98185ea..a3d22f261 100644 --- a/src/groups.js +++ b/src/groups.js @@ -159,11 +159,11 @@ function setGroups(userId, groupIds, callback) { assert(Array.isArray(groupIds)); assert.strictEqual(typeof callback, 'function'); - groupdb.setGroups(userId, groupIds, function (error, result) { + groupdb.setGroups(userId, groupIds, function (error) { if (error && error.reason === DatabaseError.NOT_FOUND) return callback(new GroupError(GroupError.NOT_FOUND)); if (error) return callback(new GroupError(GroupError.INTERNAL_ERROR, error)); - return callback(null, result); + return callback(null); }); }