Skip to content
Snippets Groups Projects
Commit a014c149 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Remove extra var statement.

Variable 'comment' is already a parameter, no 'var' needed.
parent d6a5e934
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ exports.formatComments = function(comments, req) { ...@@ -36,7 +36,7 @@ exports.formatComments = function(comments, req) {
return _.map(comments, function(comment) { return _.map(comments, function(comment) {
var comment = _.extend(comment._doc, { comment = _.extend(comment._doc, {
score: comment.upVotes.length - comment.downVotes.length, score: comment.upVotes.length - comment.downVotes.length,
createdAt: String(comment.createdAt) createdAt: String(comment.createdAt)
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment