Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Fix unwrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Jan 2, 2016
1 parent 5893a7a commit 8c4e082
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ module.exports = function(config) {

var unwrapFromList = function(cb) {
return function(err, data) {
cb(err, err ? null : data[0]);
if (err) return cb(err);
cb(null, data);
};
};

Expand Down

0 comments on commit 8c4e082

Please sign in to comment.