mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
add missing return, fix tests
This commit is contained in:
@@ -150,7 +150,7 @@ module.exports = function (SocketPosts) {
|
||||
return callback(new Error('[[error:cant-purge-main-post]]'));
|
||||
}
|
||||
if (results.isMain && results.isLast) {
|
||||
deleteTopicOf(data.pid, socket, next);
|
||||
return deleteTopicOf(data.pid, socket, next);
|
||||
}
|
||||
setImmediate(next);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user