fix: prettier formatting on long line (line 1539)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1536,8 +1536,14 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
|||||||
if (!node) return ''
|
if (!node) return ''
|
||||||
const pad = ' '.repeat(indent)
|
const pad = ' '.repeat(indent)
|
||||||
const tag = node.tag || '?'
|
const tag = node.tag || '?'
|
||||||
const attrEntries = node.attrs ? Object.entries(node.attrs).filter(([, v]) => v !== undefined && v !== null) : []
|
const attrEntries = node.attrs
|
||||||
const attrStr = attrEntries.length > 0 ? ' ' + attrEntries.map(([k, v]) => `${k}="${v}"`).join(' ') : ''
|
? 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}/>`
|
if (!node.content) return `${pad}<${tag}${attrStr}/>`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user