Skip to content

Commit

Permalink
chore: Update retries default value in retry.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
KieraDOG committed Aug 1, 2024
1 parent 4c08b64 commit 9ec4254
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ interface Config {
}

const retry = async (fn: () => Promise<unknown>, config: Config) => {
const {
retries = 3,
onRetry,
onFail,
} = config;
const { retries, onRetry, onFail } = config;

try {
return await fn();
Expand Down

0 comments on commit 9ec4254

Please sign in to comment.