Closed PierrickVoulet closed 7 months ago
Instead of having the return
statement on its own line, we can just do it wherever we are either doing res.send
or res.json
. For example:
return res.send('Hello! This function is meant to be used in a Google Chat Space.');
Instead of having the
return
statement on its own line, we can just do it wherever we are either doingres.send
orres.json
. For example:return res.send('Hello! This function is meant to be used in a Google Chat Space.');
Agreed and done! I also added returns even for latest statements for consistency and best practice.