style:lint

This commit is contained in:
手瓜一十雪
2024-08-06 11:12:25 +08:00
parent a6dec70e4e
commit 607f63b40b
13 changed files with 72 additions and 64 deletions

View File

@@ -195,7 +195,7 @@ export async function uri2local(UriOrPath: string, fileName: string | null = nul
let url = null;
//区分path和uri
try {
if (fs.existsSync(UriOrPath)) url = new URL("file://" + UriOrPath);
if (fs.existsSync(UriOrPath)) url = new URL('file://' + UriOrPath);
} catch (error: any) { }
try {
url = new URL(UriOrPath);