History

[autofix.ci] apply automated fixes

autofix-ci[bot] committed 10 months ago

Commit 13b64e41 parent fe5efd71 file · +4 −3Browse files

Unified · Split

apps/dokploy/lib/password-utils.ts+4−3
@@ -6,9 +6,10 @@ export const generateRandomPassword = ( · 5 unmodified lines
66 length: number = DEFAULT_PASSWORD_LENGTH,
77 charset: string = DEFAULT_PASSWORD_CHARSET,
88 ) => {
9− const safeLength = Number.isFinite(length) && length > 0
10− ? Math.floor(length)
11− : DEFAULT_PASSWORD_LENGTH;
9+ const safeLength =
10+ Number.isFinite(length) && length > 0
11+ ? Math.floor(length)
12+ : DEFAULT_PASSWORD_LENGTH;
1213
1314 if (safeLength <= 0 || charset.length === 0) {
1415 return "";