mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
removed some commented out code
This commit is contained in:
@@ -19,14 +19,6 @@ module.exports = function(SocketUser) {
|
||||
|
||||
var type = data.type;
|
||||
|
||||
// if (type === 'default') {
|
||||
// type = null;
|
||||
// } else if (type === 'uploaded') {
|
||||
// type = 'uploadedpicture';
|
||||
// } else {
|
||||
// return callback(new Error('[[error:invalid-image-type, ' + ['default', 'uploadedpicture'].join(', ') + ']]'));
|
||||
// }
|
||||
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
user.isAdminOrSelf(socket.uid, data.uid, next);
|
||||
|
||||
Reference in New Issue
Block a user