[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-01-12 15:06:20 +00:00
committed by GitHub
parent fe5efd7651
commit 13b64e45ec
+4 -3
View File
@@ -6,9 +6,10 @@ export const generateRandomPassword = (
length: number = DEFAULT_PASSWORD_LENGTH,
charset: string = DEFAULT_PASSWORD_CHARSET,
) => {
const safeLength = Number.isFinite(length) && length > 0
? Math.floor(length)
: DEFAULT_PASSWORD_LENGTH;
const safeLength =
Number.isFinite(length) && length > 0
? Math.floor(length)
: DEFAULT_PASSWORD_LENGTH;
if (safeLength <= 0 || charset.length === 0) {
return "";