feat: speedup by not await fs unlink $__StoryList

This commit is contained in:
tiddlygit-test 2022-02-14 00:09:29 +08:00
parent 94f195f79b
commit d3287ca014

View file

@ -483,8 +483,9 @@ export class Wiki implements IWikiService {
const { wikiFolderLocation, port, isSubWiki, mainWikiToLink, id } = workspace;
// remove $:/StoryList, otherwise it sometimes cause $__StoryList_1.tid to be generated
// and it will leak private sub-wiki's opened tiddler title
try {
await fs.unlink(path.resolve(wikiFolderLocation, 'tiddlers', '$__StoryList'));
void fs.unlink(path.resolve(wikiFolderLocation, 'tiddlers', '$__StoryList')).catch(() => {});
} catch {
// do nothing
}