mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Fix lint
This commit is contained in:
parent
780f17f116
commit
9e2700b89d
108 changed files with 315 additions and 359 deletions
|
@ -18,8 +18,8 @@ async function waitJobs (
|
|||
|
||||
let servers: PeerTubeServer[]
|
||||
|
||||
if (Array.isArray(serversArg) === false) servers = [ serversArg as PeerTubeServer ]
|
||||
else servers = serversArg as PeerTubeServer[]
|
||||
if (Array.isArray(serversArg) === false) servers = [ serversArg ]
|
||||
else servers = serversArg
|
||||
|
||||
const states: JobState[] = [ 'waiting', 'active' ]
|
||||
if (!skipDelayed) states.push('delayed')
|
||||
|
|
|
@ -35,6 +35,7 @@ async function cleanupTests (servers: PeerTubeServer[]) {
|
|||
for (const server of servers) {
|
||||
if (!server) continue
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
p = p.concat(server.servers.cleanupTests())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue