chore: Improves linting rule to catch mishandled promises (#5506)

This commit is contained in:
Tom Moor
2023-07-01 13:25:51 -04:00
committed by GitHub
parent 7aec0e24ef
commit f843a20a54
13 changed files with 265 additions and 269 deletions

View File

@@ -86,7 +86,7 @@ export default function init(app: Koa = new Koa(), server?: Server) {
// Monitor server connections
if (server) {
setInterval(async () => {
setInterval(() => {
server.getConnections((err, count) => {
if (err) {
return;