mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
small tweak
This commit is contained in:
@@ -26,11 +26,7 @@ var async = require('async'),
|
||||
|
||||
Topics.getTopicData = function(tid, callback) {
|
||||
Topics.getTopicsData([tid], function(err, topics) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
callback(null, topics ? topics[0] : null);
|
||||
callback(err, Array.isArray(topics) && topics.length ? topics[0] : null);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user