From 90c0a06fd486975a54be3e5bea317d1d95f5c433 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sat, 7 Nov 2015 10:40:46 -0500 Subject: [PATCH] removed some commented out code --- src/socket.io/user/picture.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/socket.io/user/picture.js b/src/socket.io/user/picture.js index acc1107173..6149eff50d 100644 --- a/src/socket.io/user/picture.js +++ b/src/socket.io/user/picture.js @@ -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);