Open JohnJiang900526 opened 4 years ago
The return
stops the evaluation of the function block. In your example done(null, user)
would be called regardless if done was called from the if statements.
Example that illustrates the difference with and without the return
:
https://stackoverflow.com/a/59619194/7582783