Skip to content

Commit 1b261c2

Browse files
authored
Merge pull request sadanandpai#59 from aslamabid/patch-1
The asyncFuncs array seems unnecessary for the nextAsyncFunc function
2 parents f484d07 + a8e7709 commit 1b261c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/pages/challenges/async.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function callbackManager(asyncFuncs) {
208208
function nextFuncExecutor() {
209209
const nextAsyncFunc = asyncFuncs.shift();
210210
if (nextAsyncFunc && typeof nextAsyncFunc === "function") {
211-
nextAsyncFunc(nextFuncExecutor, asyncFuncs);
211+
nextAsyncFunc(nextFuncExecutor);
212212
}
213213
}
214214
nextFuncExecutor();

0 commit comments

Comments
 (0)