fix: remove unnecessary check

This commit is contained in:
Raymond 2025-06-01 15:09:29 -04:00 committed by GitHub
parent 3aaeebae96
commit 9c91d730b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -186,8 +186,6 @@ export function initializeDb() : Promise<void> {
export async function userboxFileProcess(folder: FileSystemEntry, progressUpdate: (progress: number, progressString: string) => void): Promise<string | null> {
if (!isDirectory(folder))
return t("userbox.new.error.invalidFolder")
if (!(await validateDirectories(folder, "bin/option") || await validateDirectories(folder, "option")) && !(await validateDirectories(folder, "data/A000")))
return t("userbox.new.error.invalidFolder");
initializeDb();
const optionFolder = await scanRecursive(folder, "A001");