mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-12-16 10:02:34 +08:00
v10.36.3
This commit is contained in:
11
src/utils.ts
11
src/utils.ts
@@ -111,17 +111,6 @@ export const enhancedFetch = async (
|
||||
isRetry = false,
|
||||
): Promise<Response> => {
|
||||
return fetch(url, params)
|
||||
.then(r => {
|
||||
if (r.ok) {
|
||||
return r;
|
||||
}
|
||||
throw Error(
|
||||
i18n.t('error_http_status', {
|
||||
status: r.status,
|
||||
statusText: r.statusText,
|
||||
}),
|
||||
);
|
||||
})
|
||||
.catch(e => {
|
||||
log('fetch error', url, e);
|
||||
if (isRetry) {
|
||||
|
||||
Reference in New Issue
Block a user