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

@@ -213,9 +213,7 @@ async function ensureSocketParent(path: string): Promise<void> {
try {
const stat = await lstat(dir)
if (!stat.isDirectory() || stat.isSymbolicLink()) {
throw new Error(
`[udsMessaging] socket parent is not a directory: ${dir}`,
)
throw new Error(`[udsMessaging] socket parent is not a directory: ${dir}`)
}
assertPrivateDirectory(stat, dir, 'socket parent')
return
@@ -341,7 +339,10 @@ function writeSocketMessage(socket: Socket, message: UdsMessage): void {
socket.write(jsonStringify(message) + '\n')
}
function writeSocketMessageAndDestroy(socket: Socket, message: UdsMessage): void {
function writeSocketMessageAndDestroy(
socket: Socket,
message: UdsMessage,
): void {
if (socket.destroyed) return
socket.write(jsonStringify(message) + '\n', () => {
if (!socket.destroyed) socket.destroy()