From 5610d78c70acfe884c960b2058403dd2fb3e9c14 Mon Sep 17 00:00:00 2001 From: RafaDev7 Date: Sun, 8 Sep 2013 06:28:32 -0300 Subject: [PATCH] Removing an unecessary code line --- app/controllers/articles.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/articles.js b/app/controllers/articles.js index 5a218b1b..16a7fad5 100644 --- a/app/controllers/articles.js +++ b/app/controllers/articles.js @@ -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); } }); -}; \ No newline at end of file +};