diff options
author | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-07-03 01:57:30 -0400 |
---|---|---|
committer | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-07-03 01:57:30 -0400 |
commit | 7fd5f91753f0377955221962a4db677eb836bd0a (patch) | |
tree | 4952ddf6535ca3d5b97834b3c843aabaac3962cb | |
parent | 6364921f71c4f6eac84e54d8287eea9d6006e7e6 (diff) | |
download | async-7fd5f91753f0377955221962a4db677eb836bd0a.tar.gz |
Reduce duplication of forEachOf implentation
-rw-r--r-- | lib/async.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/async.js b/lib/async.js index 67404c7..705eff9 100644 --- a/lib/async.js +++ b/lib/async.js @@ -552,8 +552,8 @@ } if (err) { var safeResults = {}; - _arrayEach(_keys(results), function(rkey) { - safeResults[rkey] = results[rkey]; + _forEachOf(results, function(val, rkey) { + safeResults[rkey] = val; }); safeResults[k] = args; callback(err, safeResults); |