From 7873b90caf9b1acc4c46414fd833e5442b0a8741 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 14 Mar 2014 20:06:46 -0400 Subject: [PATCH] missing ; --- src/messaging.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/messaging.js b/src/messaging.js index 8de22b724e..443b557096 100644 --- a/src/messaging.js +++ b/src/messaging.js @@ -10,9 +10,7 @@ var db = require('./database'), (function(Messaging) { function sortUids(fromuid, touid) { - var uids = [fromuid, touid]; - uids.sort(); - return uids; + return [fromuid, touid].sort(); } Messaging.addMessage = function(fromuid, touid, content, callback) { @@ -126,12 +124,12 @@ var db = require('./database'), user.getMultipleUserFields(uids, ['username', 'picture', 'uid'], function(err, users) { if (err) { - return callback(err) + return callback(err); } users = users.filter(function(user) { return !!user.uid; - }) + }); callback(null, users); });