Open isomorphisms opened 7 years ago
what exactly is the bug in
(user,callback) => { if (user) { callback(null,user) ; } return callback( "No user found", null) }
?
@isomorphisms I think you want to return; inside the if block as well, otherwise you first run the callback with callback(null, user); and then with callback( "No user found", null);?
return;
if
callback(null, user);
callback( "No user found", null);
what exactly is the bug in
?