Skip to content

Commit a8e7709

Browse files
authored
The asyncFuncs array seems unnecessary for the nextAsyncFunc function
The asyncFunc1, asyncFunc2, and asyncFunc3 functions, as defined in the code, only accept a single argument, which is the callback function. In this case, the asyncFuncs array seems unnecessary for the nextAsyncFunc functions, as they don't utilize it directly
1 parent f484d07 commit a8e7709

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)