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 })
|
||||
const appDbNames = dbs.filter((dbName: any) => {
|
||||
if (env.isTest()) {
|
||||
if (!dbName) {
|
||||
return false
|
||||
}
|
||||
if (env.isTest() && !dbName) {
|
||||
return false
|
||||
}
|
||||
|
||||
const split = dbName.split(SEPARATOR)
|
||||
|
|
Loading…
Reference in New Issue