chore: Improves linting rule to catch mishandled promises (#5506)
This commit is contained in:
@@ -12,8 +12,8 @@ export default function init() {
|
||||
}
|
||||
}
|
||||
|
||||
setInterval(() => run(TaskSchedule.Daily), Day);
|
||||
setInterval(() => run(TaskSchedule.Hourly), Hour);
|
||||
setInterval(() => void run(TaskSchedule.Daily), Day);
|
||||
setInterval(() => void run(TaskSchedule.Hourly), Hour);
|
||||
|
||||
// Just give everything time to startup before running the first time. Not
|
||||
// _technically_ required to function.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user