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

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> { export async function userboxFileProcess(folder: FileSystemEntry, progressUpdate: (progress: number, progressString: string) => void): Promise<string | null> {
if (!isDirectory(folder)) if (!isDirectory(folder))
return t("userbox.new.error.invalidFolder") 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(); initializeDb();
const optionFolder = await scanRecursive(folder, "A001"); const optionFolder = await scanRecursive(folder, "A001");