Skip to content

Commit

Permalink
update node-asyncify
Browse files Browse the repository at this point in the history
  • Loading branch information
junosuarez committed Dec 4, 2012
1 parent 1ddaa81 commit 218981d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"async": "~0.1.22",
"when": "~1.7.0",
"node-asyncify": "~0.1.2"
"node-asyncify": "~0.1.3"
},
"devDependencies": {
"mocha": "~1.7.3"
Expand Down
8 changes: 1 addition & 7 deletions predicament.js
Expand Up @@ -25,13 +25,7 @@ function toAsyncPredicate(predicate) {
}

function errorFirstify(valueFirstCbReturningFn) {
return function () {
var args = toArray(arguments);
var cb = args.pop();
valueFirstCbReturningFn.apply(this, args.concat(function (val) {
cb(null, val);
}));
};
return asyncify.errorFirstify(valueFirstCbReturningFn);
}

var If = function (predicate, consequent) {
Expand Down

0 comments on commit 218981d

Please sign in to comment.