From cfaa6556d6aaf9ee84ef3e67fcd9077c61c9644c Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Fri, 17 Jan 2014 00:07:02 -0500 Subject: [PATCH] pass err --- src/socket.io/admin.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/socket.io/admin.js b/src/socket.io/admin.js index 33e188b4c5..7395ec800a 100644 --- a/src/socket.io/admin.js +++ b/src/socket.io/admin.js @@ -87,11 +87,7 @@ SocketAdmin.user.search = function(socket, username, callback) { } async.each(data, isAdmin, function(err) { - if(err) { - return callback({message: err.message}); - } - - callback(null, data); + callback(err, data); }); }); };