Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Removing an unecessary code line
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeldaime committed Sep 8, 2013
1 parent 1ca5d16 commit 5610d78
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/articles.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -82,4 +80,4 @@ exports.all = function(req, res) {
res.jsonp(articles);
}
});
};
};

0 comments on commit 5610d78

Please sign in to comment.