Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
cb wrapping breaks expected error condition
  • Loading branch information
isaacs committed Jan 13, 2011
1 parent f1f93a8 commit 15a8436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/registry/request.js
Expand Up @@ -33,7 +33,7 @@ function request (method, where, what, etag, nofollow, cb) {
var errState = null
return function (er) {
if (errState) return
if (er) return cb(errState = er)
if (er) er = errState
cb.apply(null, arguments)
}
})(cb)
Expand Down

0 comments on commit 15a8436

Please sign in to comment.