style: 移除尾随逗号

WHAT: 移除 SocksProxyAgent 配置对象中的尾随逗号
WHY: 保持代码格式的一致性和整洁性,符合项目的代码规范
HOW: 删除 family: 4 后的尾随逗号;无功能变更;纯格式化修改
This commit is contained in:
mouyong
2025-08-20 09:45:55 +08:00
parent b1f2b4f6c1
commit 5ae136a5dc

View File

@@ -22,7 +22,7 @@ function createProxyAgent(proxy) {
const auth = proxy.username && proxy.password ? `${proxy.username}:${proxy.password}@` : ''
const socksUrl = `socks5://${auth}${proxy.host}:${proxy.port}`
return new SocksProxyAgent(socksUrl, {
family: 4,
family: 4
})
} else if (proxy.type === 'http' || proxy.type === 'https') {
const auth = proxy.username && proxy.password ? `${proxy.username}:${proxy.password}@` : ''