simplify if
This commit is contained in:
parent
eb0086e532
commit
865ae93f7c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue