From 7a0d91f8ff871d9bc5fadf2fb2748ac9b60ecb3b Mon Sep 17 00:00:00 2001 From: Cristian Kiss Date: Tue, 17 Nov 2015 11:43:44 +0200 Subject: [PATCH] linting fixes --- profiles.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles.js b/profiles.js index 8f1dd4d1..c108e262 100644 --- a/profiles.js +++ b/profiles.js @@ -498,8 +498,8 @@ module.exports = function (options) { seneca.act({role: 'cd-users', cmd: 'load_dojo_admins_for_user', userId: profile.userId}, function (err, dojoAdmins) { if (err) return done(err); profile.requestingUserIsDojoAdmin = _.find(dojoAdmins, function (dojoAdmin) { - if(!dojoAdmin.ok){ - return false + if (!dojoAdmin.ok) { + return false; } return dojoAdmin.id === args.user ? args.user.id : null; });