style(code): 格式化代码

- 将长参数列表拆分为多行以提高可读性
- 标准化函数调用中的逗号使用
- 统一对象和数组的换行格式
- 更新 ESLint 配置中的 ECMA 版本至 2020,以支持 ES2020 语法(包括 Optional Chaining)
- 优化代码缩进和对齐方式
- 确保所有文件中的代码风格一致性
This commit is contained in:
LaoShui
2026-02-19 11:52:19 +08:00
parent 755489546b
commit b1729f19aa
6 changed files with 40 additions and 17 deletions
+9 -2
View File
@@ -82,9 +82,16 @@ module.exports = async (query, request) => {
while (offset < fileSize) {
let chunk
if (useTempFile) {
chunk = await readFileChunk(query.songFile.tempFilePath, offset, Math.min(blockSize, fileSize - offset))
chunk = await readFileChunk(
query.songFile.tempFilePath,
offset,
Math.min(blockSize, fileSize - offset),
)
} else {
chunk = query.songFile.data.slice(offset, Math.min(offset + blockSize, fileSize))
chunk = query.songFile.data.slice(
offset,
Math.min(offset + blockSize, fileSize),
)
}
const res3 = await axios({