diff options
author | Rebecca Turner <me@re-becca.org> | 2015-08-05 10:09:14 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-08-08 02:06:45 +0300 |
commit | bcc8c0aa9aed56c7c0a67bc4e9cdb5c16bd2f4c1 (patch) | |
tree | 948c854c1d55af53ba86e480c24ab53bae5bd407 /lib/fetch-package-metadata.js | |
parent | d9351552b3a345049f68d38ab4ebdaf48091602b (diff) |
fetch-package-data: Lax the arg checking, error could be string
And errors mean no other objs. Which the 'E' type checks for
but other types (eg *) don't. So ditch the checking entirely. =p
Diffstat (limited to 'lib/fetch-package-metadata.js')
-rw-r--r-- | lib/fetch-package-metadata.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/fetch-package-metadata.js b/lib/fetch-package-metadata.js index b0669c209..327b442bd 100644 --- a/lib/fetch-package-metadata.js +++ b/lib/fetch-package-metadata.js @@ -28,7 +28,6 @@ var parseJSON = require('./utils/parse-json.js') function andLogAndFinish (spec, tracker, done) { validate('SF', [spec, done]) return function (er, pkg) { - validate('EO', arguments) if (er) { log.silly('fetchPackageMetaData', 'error for ' + spec, er) if (tracker) tracker.finish() @@ -60,7 +59,6 @@ module.exports = function fetchPackageMetadata (spec, where, tracker, done) { fetchOtherPackageData(spec, dep, where, addRequestedAndFinish) } function addRequestedAndFinish (er, pkg) { - validate('EO', arguments) if (pkg) { pkg._requested = dep pkg._spec = spec |