Skip to content
This repository
  • 2 commits
  • 1 file changed
  • 0 comments
  • 2 contributors

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/advanced_structures/RateLimit.js
2  lib/advanced_structures/RateLimit.js
@@ -129,7 +129,7 @@ RateLimit.prototype.count = function (subject, interval, callback) {
129 129
     //Add up the counts from each bucket
130 130
     multi.exec(function (err, counts) {
131 131
         if (err) return callback(err, null);
132  
-        for (var count = i = 0, l = counts.length; i < l; i++) {
  132
+        for (var count = 0, i = 0, l = counts.length; i < l; i++) {
133 133
             if (counts[i]) {
134 134
                 count += parseInt(counts[i], 10);
135 135
             }

No commit comments for this range

Something went wrong with that request. Please try again.