From 865ae93f7c55f0e386f748179bfc3c2aa9b8f7fa Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 11 Aug 2022 11:31:16 +0100 Subject: [PATCH] simplify if --- packages/backend-core/src/db/utils.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/backend-core/src/db/utils.ts b/packages/backend-core/src/db/utils.ts index 61e0592271..d43ea1ae39 100644 --- a/packages/backend-core/src/db/utils.ts +++ b/packages/backend-core/src/db/utils.ts @@ -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)