Skip to content

Commit

Permalink
fixed long named function
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Falardeau committed Mar 25, 2017
1 parent db995ed commit 3b13c67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/controllers/conversations.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ const returnConversationsBetweenUsers = function (req, res, conversations) {
'users': users
});
});
};

function currentUserCreatesAConversationWithSomeoneElse(userIds, req) {
return userIds && userIds.length === 2 && userIds.includes(req.params.user_id);
}
const currentUserCreatesAConversationWithSomeoneElse = function (userIds, req) {
return userIds && userIds.length === 2 && userIds.includes(req.params.user_id);
};

0 comments on commit 3b13c67

Please sign in to comment.