diff --git a/lib/utils.ts b/lib/utils.ts index 123dca2..a493980 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -86,12 +86,6 @@ export const enhancedFetch = async ( isRetry = false, ) => { return fetch(url, params) - .then((r) => { - if (r.ok) { - return r; - } - throw new Error(`${r.status} ${r.statusText}`); - }) .catch((e) => { logger('fetch error', url, e); if (isRetry) { diff --git a/package.json b/package.json index dcf1114..84581d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-update", - "version": "8.5.7", + "version": "8.5.8", "description": "react-native hot update", "main": "dist/index.js", "types": "dist/index.d.ts",