Fix space-before-function-paren linter rule

This commit is contained in:
HeeL
2016-10-13 11:43:39 +02:00
parent 3fa1c1f927
commit 4a3c31b2dc
385 changed files with 6621 additions and 6622 deletions

View File

@@ -13,7 +13,7 @@ var utils = require('../../../public/src/utils');
var helpers = {};
helpers.getUserDataByUserSlug = function(userslug, callerUID, callback) {
helpers.getUserDataByUserSlug = function (userslug, callerUID, callback) {
async.waterfall([
function (next) {
user.getUidByUserslug(userslug, next);
@@ -24,34 +24,34 @@ helpers.getUserDataByUserSlug = function(userslug, callerUID, callback) {
}
async.parallel({
userData : function(next) {
userData : function (next) {
user.getUserData(uid, next);
},
userSettings : function(next) {
userSettings : function (next) {
user.getSettings(uid, next);
},
isAdmin : function(next) {
isAdmin : function (next) {
user.isAdministrator(callerUID, next);
},
isGlobalModerator: function(next) {
isGlobalModerator: function (next) {
user.isGlobalModerator(callerUID, next);
},
isFollowing: function(next) {
isFollowing: function (next) {
user.isFollowing(callerUID, uid, next);
},
ips: function(next) {
ips: function (next) {
user.getIPs(uid, 4, next);
},
profile_links: function(next) {
profile_links: function (next) {
plugins.fireHook('filter:user.profileLinks', [], next);
},
profile_menu: function(next) {
profile_menu: function (next) {
plugins.fireHook('filter:user.profileMenu', {uid: uid, callerUID: callerUID, links: []}, next);
},
groups: function(next) {
groups: function (next) {
groups.getUserGroups([uid], next);
},
sso: function(next) {
sso: function (next) {
plugins.fireHook('filter:auth.list', {uid: uid, associations: []}, next);
}
}, next);
@@ -137,13 +137,13 @@ helpers.getUserDataByUserSlug = function(userslug, callerUID, callback) {
};
helpers.getBaseUser = function(userslug, callerUID, callback) {
helpers.getBaseUser = function (userslug, callerUID, callback) {
winston.warn('helpers.getBaseUser deprecated please use helpers.getUserDataByUserSlug');
helpers.getUserDataByUserSlug(userslug, callerUID, callback);
};
function filterLinks(links, self) {
return links.filter(function(link) {
return links.filter(function (link) {
return link && (link.public || self);
});
}