New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always pass a callback as the last function parameter - Closes #2449 #2597
Always pass a callback as the last function parameter - Closes #2449 #2597
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is still a lot of (100+) places where callback is being passed not as the last parameter. The pattern I used to find them is: cb,
@MaciejBaj this Issue/PR was originally only for wait_for file. Should this now be implemented application wise? ( Also take into account that your pattern will match |
@pablitovicente ok, let's leave the wait_for only for now. Please solve the conflicts. |
What was the problem?
Functions from wait_for.js did not followed NodeJS' convention of accepting a callback at last parameter.
How did I fix it?
How to test it?
Review checklist