mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-06 04:07:11 +02:00
Removing an unecessary code line
This commit is contained in:
@@ -11,8 +11,6 @@ var mongoose = require('mongoose'),
|
||||
* Find article by id
|
||||
*/
|
||||
exports.article = function(req, res, next, id) {
|
||||
var User = mongoose.model('User');
|
||||
|
||||
Article.load(id, function(err, article) {
|
||||
if (err) return next(err);
|
||||
if (!article) return next(new Error('Failed to load article ' + id));
|
||||
@@ -82,4 +80,4 @@ exports.all = function(req, res) {
|
||||
res.jsonp(articles);
|
||||
}
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user