includes is slightly better than every here

This commit is contained in:
Vendicated 2025-02-12 13:18:20 +01:00
parent d39c54b3ee
commit d7bc56660b
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -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() {