Removing an unecessary code line

This commit is contained in:
RafaDev7
2013-09-08 06:28:32 -03:00
parent 1ca5d16807
commit 5610d78c70

View File

@@ -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);
}
});
};
};