🚨 修复 qodana 报错

This commit is contained in:
BTMuli
2023-11-18 12:29:35 +08:00
parent 1d09f4817b
commit 653073e684

View File

@@ -114,7 +114,7 @@ export async function getCacheDir(): Promise<string[] | false> {
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;