diff --git a/lib/internal/modules/esm/fetch_module.js b/lib/internal/modules/esm/fetch_module.js index 6cabd893ad6885..32d9530976627f 100644 --- a/lib/internal/modules/esm/fetch_module.js +++ b/lib/internal/modules/esm/fetch_module.js @@ -31,7 +31,7 @@ const { compose } = require('stream'); * Only for GET requests, other requests would need new Map * HTTP cache semantics keep diff caches * - * It caches either the promise or the cahce entry since import.meta.url needs + * It caches either the promise or the cache entry since import.meta.url needs * the value synchronously for the response location after all redirects. * * Maps HREF to pending cache entry @@ -105,7 +105,7 @@ function fetchWithRedirects(parsed) { headers: { Accept: '*/*' }, }); // Note that `once` is used here to handle `error` and that it hits the - // finally on network error/timeout. + // `finally` on network error/timeout. const { 0: res } = await once(req, 'response'); try { const isRedirect = res.statusCode >= 300 && res.statusCode <= 303;