From d7bc56660bc34bde7017f7dfe06c317777865e3f Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 12 Feb 2025 13:18:20 +0100 Subject: [PATCH] includes is slightly better than every here --- src/main/utils/vencordLoader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/utils/vencordLoader.ts b/src/main/utils/vencordLoader.ts index fe21746..85b6112 100644 --- a/src/main/utils/vencordLoader.ts +++ b/src/main/utils/vencordLoader.ts @@ -64,7 +64,7 @@ const existsAsync = (path: string) => export async function isValidVencordInstall(dir: string) { const results = await Promise.all(["package.json", ...FILES_TO_DOWNLOAD].map(f => existsAsync(join(dir, f)))); - return results.every(Boolean); + return !results.includes(false); } export async function ensureVencordFiles() {