ESlint radix

This commit is contained in:
Peter Jaszkowiak
2017-02-18 14:29:52 -07:00
parent 09e868ce5f
commit 57f89663aa
11 changed files with 12 additions and 12 deletions

View File

@@ -153,7 +153,7 @@ module.exports = function (Posts) {
return callback(new Error('self-vote'));
}
if (command === 'downvote' && parseInt(results.reputation) < parseInt(meta.config['privileges:downvote'], 10)) {
if (command === 'downvote' && parseInt(results.reputation, 10) < parseInt(meta.config['privileges:downvote'], 10)) {
return callback(new Error('[[error:not-enough-reputation-to-downvote]]'));
}