mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix bad imports of node-fetch
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
e8bc887f0b
commit
58cbf5f300
3 files changed
+32
-3
No files matched your search
@@ -33,7 +33,7 @@ const canvasPrebuildUrl = canvasPrebuiltUrlBuilder(canvasVersion, nodeModuleVers
|
||||
|
||||
const canvasPrebuilt = await fetch(canvasPrebuildUrl);
|
||||
|
||||
if (canvasPrebuilt.status !== 200) {
|
||||
if (canvasPrebuilt.status !== 200 || !canvasPrebuilt.body) {
|
||||
throw new Error(`Failed to download prebuilt from ${canvasPrebuildUrl}: ${canvasPrebuilt.statusText}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user