Created
March 13, 2020 21:52
-
-
Save isaacs/d18d5725c6055db4f93db3cd78f66bca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/fetcher.js b/lib/fetcher.js | |
index 4c5efdc..22701df 100644 | |
--- a/lib/fetcher.js | |
+++ b/lib/fetcher.js | |
@@ -271,7 +271,8 @@ class FetcherBase { | |
}. Extracting by manifest.`) | |
} | |
return this.resolve().then(() => retry(tryAgain => | |
- streamHandler(this[_istream](this[_tarballFromResolved]())) | |
+ this[_tarballFromResolved]() | |
+ .then(stream => streamHandler(this[_istream](stream))) | |
.catch(er => { | |
// Most likely data integrity. A cache ENOENT error is unlikely | |
// here, since we're definitely not reading from the cache, but it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment