Closed somerandomdev49 closed 5 years ago
changed function(err,result){... to (err, result) => {...
function(err,result){...
(err, result) => {...
The arrow function implies that inheriting the parent scope is desired and that the implicit return is desired. Neither implication is necessary here.
changed
function(err,result){...
to(err, result) => {...