dont make local variables global

This commit is contained in:
webzwo0i 2014-12-14 22:01:28 +01:00
parent 1932d240e5
commit 5d15f655f0
11 changed files with 14 additions and 14 deletions

View file

@ -41,7 +41,7 @@ exports.syncMapFirst = function (lst, fn) {
exports.mapFirst = function (lst, fn, cb) {
var i = 0;
next = function () {
var next = function () {
if (i >= lst.length) return cb(undefined);
fn(lst[i++], function (err, result) {
if (err) return cb(err);