From aa64ec7db19df296d3bd32af815de38008334433 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 17 Feb 2017 22:33:41 +0300 Subject: [PATCH] remove unnecessary code --- src/socket.io/topics/move.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/socket.io/topics/move.js b/src/socket.io/topics/move.js index 25f5f8a19d..938fe22792 100644 --- a/src/socket.io/topics/move.js +++ b/src/socket.io/topics/move.js @@ -23,9 +23,7 @@ module.exports = function (SocketTopics) { if (!canMove) { return next(new Error('[[error:no-privileges]]')); } - next(); - }, - function (next) { + topics.getTopicFields(tid, ['cid', 'slug'], next); }, function (_topicData, next) {