mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-12-17 18:22:38 +08:00
v8.5.8
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user