From 38eeb678f37ec2df29bbd31ab9a28d98853fc541 Mon Sep 17 00:00:00 2001 From: Soybean Date: Mon, 9 Sep 2024 14:27:09 +0800 Subject: [PATCH] optimize(projects): optimize code --- src/utils/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/service.ts b/src/utils/service.ts index 3586c64b..a275b39d 100644 --- a/src/utils/service.ts +++ b/src/utils/service.ts @@ -11,7 +11,7 @@ export function createServiceConfig(env: Env.ImportMeta) { let other = {} as Record; try { other = json5.parse(VITE_OTHER_SERVICE_BASE_URL); - } catch (error) { + } catch { // eslint-disable-next-line no-console console.error('VITE_OTHER_SERVICE_BASE_URL is not a valid json5 string'); }