Skip to content

Commit 9f8a25d

Browse files
committed
More Consistency;
1 parent e1eafdb commit 9f8a25d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

controllers/admin.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ function getOAuthStrategies(stored) {
3434
strategy = strategies[type];
3535
if (strategy.oauth) {
3636
oAuthStrats.push(stored[type] ||
37-
nil({ 'strat': type, 'id': '', 'key': '' }));
37+
nil({
38+
'strat': type,
39+
'id': '',
40+
'key': ''
41+
}));
3842
}
3943
}
4044

@@ -57,7 +61,8 @@ exports.userAdmin = function(req, res, next) {
5761
var roles = [];
5862
userRoles.forEach(function(role, index) {
5963
roles.push({
60-
'val': index, 'display': role,
64+
'val': index,
65+
'display': role,
6166
'selected': index === user.role
6267
});
6368
});
@@ -103,7 +108,7 @@ var jsonModelMap = {
103108
'Discussion': Discussion,
104109
'Comment': Comment,
105110
'Vote': Vote,
106-
'Flag': Flag,
111+
'Flag': Flag
107112
};
108113
// View everything about a particular user
109114
// This is mostly for debugging in production

0 commit comments

Comments
 (0)