Skip to content

Node.js based forum software built for the modern web

removed some commented out code

Julian Lam90c0a06fd486
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);