Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
fix(extract): correctly detect digest cache misses
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Feb 24, 2017
1 parent 0ca28fe commit ec6672b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function extract (spec, dest, opts, cb) {
if (opts.digest) {
opts.log.silly('extract', 'trying ', spec, ' digest:', opts.digest)
extractByDigest(dest, opts, function (err) {
if (err && err === 'ENOENT') {
if (err && err.code === 'ENOENT') {
opts.log.silly('extract', 'digest for', spec, 'not present. Using manifest.')
return extractByManifest(spec, dest, opts, cb)
} else {
Expand Down

0 comments on commit ec6672b

Please sign in to comment.