simplify if

This commit is contained in:
Martin McKeaveney 2022-08-11 11:31:16 +01:00
parent eb0086e532
commit 865ae93f7c
1 changed files with 2 additions and 4 deletions

View File

@ -233,10 +233,8 @@ export async function getAllApps({ dev, all, idsOnly, efficient }: any = {}) {
} }
let dbs = await getAllDbs({ efficient }) let dbs = await getAllDbs({ efficient })
const appDbNames = dbs.filter((dbName: any) => { const appDbNames = dbs.filter((dbName: any) => {
if (env.isTest()) { if (env.isTest() && !dbName) {
if (!dbName) { return false
return false
}
} }
const split = dbName.split(SEPARATOR) const split = dbName.split(SEPARATOR)