Skip to content

Fix stream-multiple.js: handle undefined index and remove unused callback body#446

Open
MatrixNeoKozak wants to merge 1 commit into
tomas:masterfrom
MatrixNeoKozak:scout-improvement-1780225732143
Open

Fix stream-multiple.js: handle undefined index and remove unused callback body#446
MatrixNeoKozak wants to merge 1 commit into
tomas:masterfrom
MatrixNeoKozak:scout-improvement-1780225732143

Conversation

@MatrixNeoKozak
Copy link
Copy Markdown

The stream-multiple example has two issues: (1) When index is undefined, it recurses without returning the recursive call, causing double invocation. (2) The function signature passes req and res but never uses them; also the comments are distracting. Fixed by early return on undefined index and cleaned up code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant