diff --git a/dist/index.js b/dist/index.js index 93b3b6f..a097b95 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3541,7 +3541,9 @@ function fetch(url, opts) { return; } - destroyStream(response.body, err); + if (response && response.body) { + destroyStream(response.body, err); + } }); /* c8 ignore next 18 */