Is the "missing await" notification correct here?

Hello,

 

I don't want to (a)wait here for this promise since I don't do anything with the promise but returning it. Is this a faulty behavior or am I getting this wrong? 

2 comments
Comment actions Permalink

There is a good article that explains the difference between return, return await inside try/catch and return await outside try/catch ; there is no sense in using return await outside try/catch but they can be required in these blocks

2
Comment actions Permalink

thanks for the clarification.

0

Please sign in to leave a comment.