mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 18:57:27 +08:00
fix: remove unnecessary check
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user