Skip to content

Commit e3f3779

Browse files
charlespwdclaude
andcommitted
Format hasOrIsNode return statement
Run Prettier to wrap long return line. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1857e34 commit e3f3779

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/prettier-plugin-liquid/src/printer/printer-liquid-html.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,5 +633,8 @@ function hasOrIsNode<N extends LiquidHtmlNode, K extends keyof N>(node: N, key:
633633
// this works because there's no ()[] type that is string | Node, it only
634634
// happens for singular nodes such as name: string | LiquidDrop, etc.
635635
// Note: isNode logic inlined to avoid terser const reassignment in standalone build
636-
return Array.isArray(v) || (v !== null && typeof v === 'object' && 'type' in v && typeof v.type === 'string');
636+
return (
637+
Array.isArray(v) ||
638+
(v !== null && typeof v === 'object' && 'type' in v && typeof v.type === 'string')
639+
);
637640
}

0 commit comments

Comments
 (0)