style:lint

This commit is contained in:
手瓜一十雪 committed 2024-08-06 11:12:25 +08:00
1 parent 8fa6a12a7c
commit 7da8ea5e99
13 files changed
+72 -64

No files matched your search

+1 -1
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);