mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-22 21:35:08 +00:00
includes is slightly better than every here
This commit is contained in:
parent
d39c54b3ee
commit
d7bc56660b
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ const existsAsync = (path: string) =>
|
||||||
|
|
||||||
export async function isValidVencordInstall(dir: string) {
|
export async function isValidVencordInstall(dir: string) {
|
||||||
const results = await Promise.all(["package.json", ...FILES_TO_DOWNLOAD].map(f => existsAsync(join(dir, f))));
|
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() {
|
export async function ensureVencordFiles() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue