Skip to content

Commit c30e764

Browse files
olehermanseclaude
andcommitted
Fixed formatting of empty slists and stakeholders
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
1 parent d211bcb commit c30e764

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cfengine_cli/format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ def stringify_single_line_nodes(nodes: list[Node]) -> str:
152152
result += " "
153153
if previous and previous.type == "=>":
154154
result += " "
155-
if previous and previous.type == "{":
155+
if previous and previous.type == "{" and node.type != "}":
156156
result += " "
157-
if previous and node.type == "}":
157+
if previous and node.type == "}" and previous.type != "{":
158158
result += " "
159159
result += string
160160
previous = node

0 commit comments

Comments
 (0)