Environment:
- Community Edition, Version 10.1 (build 73491)
- Local Sonar on pod with Podman and WSL
Description:
Sonar is wrongly flagging some code. As per ExpressJS 5 - Promise returned in function argument where a void return was expected. · Issue #4892 · expressjs/express · GitHub, this is valid code (to pass an async function to the Router).
“In express 4, async functions are supported”