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;