From 653073e684d372ee3c14fe30f2647558f72a1f54 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Sat, 18 Nov 2023 12:29:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20=E4=BF=AE=E5=A4=8D=20qodana=20?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/toolFunc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/toolFunc.ts b/src/utils/toolFunc.ts index 39727bd8..b5fcc6a8 100644 --- a/src/utils/toolFunc.ts +++ b/src/utils/toolFunc.ts @@ -114,7 +114,7 @@ export async function getCacheDir(): Promise { export function getRandomString(length: number, type: string = "all"): string { const char = "abcdefghijklmnopqrstuvwxyz"; const num = "0123456789"; - let str = ""; + let str: string; switch (type) { case "all": str = char + char.toUpperCase() + num;