Skip to content

Commit

Permalink
chore: rename onfail to onFail
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberalien committed Nov 27, 2023
1 parent bb1127f commit 85c2e81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions @iconify/tools/src/download/api/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface ConcurrentQueriesCommonParams<T> {
//
// If callback is present, runConcurrentQueries() will not throw an error, it will call
// callback instead, which should throw an error if runConcurrentQueries() should be aborted
onfail?: (
onFail?: (
index: number,
error: unknown,
params: ConcurrentQueriesParams<T>
Expand Down Expand Up @@ -118,10 +118,10 @@ export function runConcurrentQueries<T>(
}

// check for callback
if (allParams.onfail) {
if (allParams.onFail) {
let retry: void | Promise<void>;
try {
retry = allParams.onfail(index, err, params);
retry = allParams.onFail(index, err, params);
} catch (err2) {
// Callback threw error: use that error
err = err2;
Expand Down

0 comments on commit 85c2e81

Please sign in to comment.