Intellij Idea warning - “Promise returned is ignored” with aysnc/await

后端 未结 6 1525
抹茶落季
抹茶落季 2020-12-29 19:02

I\'m using Express.js in my code with Node.js v7.3. In this I\'ve created a User Router which forwards the requests to my User Controlle

6条回答
  •  再見小時候
    2020-12-29 19:50

    if you are really manic as me and the then() is not required but you need the warning to go away, a possible solution is:

    functionWithAsync.error(console.error);
    

提交回复
热议问题