Skip to content

Commit

Permalink
fix(shared): ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kuitos committed Mar 5, 2024
1 parent 45ba48f commit 97947fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/shared/src/fetch-utils/makeFetchRetryable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { type Fetch } from './utils';
export const makeFetchRetryable: (fetch: Fetch, retryTimes?: number) => Fetch = (fetch, retryTimes = 1) => {
let retryCount = 0;

return async function fetchWithRetryable(input, init) {
const fetchWithRetryable: Fetch = async (input, init) => {
try {
return await fetch(input, init);
} catch (e) {
Expand All @@ -29,4 +29,6 @@ export const makeFetchRetryable: (fetch: Fetch, retryTimes?: number) => Fetch =
throw e;
}
};

return fetchWithRetryable;
};

0 comments on commit 97947fe

Please sign in to comment.