From a5294d5176c6230443804c537fc7369f391b04b2 Mon Sep 17 00:00:00 2001 From: meteorlxy Date: Tue, 10 Sep 2024 03:15:55 +0800 Subject: [PATCH] style: fix lint error --- packages/utils/src/console/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/src/console/logger.ts b/packages/utils/src/console/logger.ts index 9aca6707dd..9e7fcfbaa8 100644 --- a/packages/utils/src/console/logger.ts +++ b/packages/utils/src/console/logger.ts @@ -21,7 +21,7 @@ export const error = (...args: unknown[]): void => { console.error(colors.red('error'), ...args) } -export const createError = (message?: string | undefined): Error => { +export const createError = (message?: string): Error => { error(message) return new Error(message) }