cleanup code

This commit is contained in:
Weixuan Fu
2024-03-04 23:25:10 +08:00
parent da628cd565
commit 1b11dca467
-6
View File
@@ -14,13 +14,7 @@ export async function scanMyWorkflowsDir(
parentFolderID: string | null,
sortBy?: ESortTypes,
): Promise<(Workflow | Folder)[]> {
const myWorkflowsDir = await userSettingsTable?.getSetting("myWorkflowsDir");
if (myWorkflowsDir == null || myWorkflowsDir === "") {
alert("No Workspace saving directory found, please go to Settings.");
return [];
}
const parentRelPath = sanitizeRelPath(parentFolderID ?? "");
console.log("scanMyWorkflowsDir", parentRelPath);
// folderID is the relative path of the folder in two way sync mode
const fileList = await scanLocalFiles(parentRelPath);