style:lint
This commit is contained in:
1 parent
8fa6a12a7c
commit
7da8ea5e99
13 files changed
+72
-64
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user