From ab971ee88ca953fa14dde1ff5dee046ba46b2173 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 14 Jun 2024 17:00:22 +0800 Subject: [PATCH] refactor(SkeletonClient): remove redundant assigning of variable --- src/SkeletonClient.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SkeletonClient.ts b/src/SkeletonClient.ts index 1e2a14c2..b6ed66aa 100644 --- a/src/SkeletonClient.ts +++ b/src/SkeletonClient.ts @@ -149,8 +149,7 @@ export class SkeletonClient extends Client { | { appName?: string; prefix?: string | string[] }, ) { super(options); - let appName: string = undefined; - appName = + const appName = typeof appNameOrOptions === 'string' ? appNameOrOptions : appNameOrOptions?.appName;