style: 完成所有文件的lint

This commit is contained in:
claude-code-best
2026-05-01 21:39:30 +08:00
parent d136872cc9
commit 6182015005
1333 changed files with 68255 additions and 77882 deletions

View File

@@ -4,12 +4,7 @@ import {
createHash,
randomBytes,
} from 'node:crypto'
import {
existsSync,
mkdirSync,
readFileSync,
writeFileSync,
} from 'node:fs'
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'
import { tmpdir } from 'node:os'
import { basename, extname, join } from 'node:path'
import { getUploadUrl } from './api.js'
@@ -49,7 +44,10 @@ export function parseAesKey(aesKeyBase64: string): Buffer {
if (decoded.length === 16) {
return decoded
}
if (decoded.length === 32 && /^[0-9a-fA-F]{32}$/.test(decoded.toString('ascii'))) {
if (
decoded.length === 32 &&
/^[0-9a-fA-F]{32}$/.test(decoded.toString('ascii'))
) {
return Buffer.from(decoded.toString('ascii'), 'hex')
}
throw new Error(