fix: prettier formatting on long line (line 1539)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Renato Alcara
2026-02-14 22:09:01 -03:00
parent dffe7cbbd2
commit be15192f63
+8 -2
View File
@@ -1536,8 +1536,14 @@ export const makeMessagesSocket = (config: SocketConfig) => {
if (!node) return ''
const pad = ' '.repeat(indent)
const tag = node.tag || '?'
const attrEntries = node.attrs ? Object.entries(node.attrs).filter(([, v]) => v !== undefined && v !== null) : []
const attrStr = attrEntries.length > 0 ? ' ' + attrEntries.map(([k, v]) => `${k}="${v}"`).join(' ') : ''
const attrEntries = node.attrs
? Object.entries(node.attrs).filter(
([, v]) => v !== undefined && v !== null
)
: []
const attrStr = attrEntries.length > 0
? ' ' + attrEntries.map(([k, v]) => `${k}="${v}"`).join(' ')
: ''
if (!node.content) return `${pad}<${tag}${attrStr}/>`