Skip to content

Commit 476d403

Browse files
committed
Add variation for conditional if-else formatting in gen.go
1 parent c020e95 commit 476d403

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/gen/gen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ func sliceNode(depth int) string {
350350
func conditionalNode(depth int) string {
351351
return oneOf(list[string]{
352352
{fmt.Sprintf("if %v { %v } else { %v }", node(depth-1), node(depth-1), node(depth-1)), 100},
353+
{fmt.Sprintf("if %v { %v } else %v", node(depth-1), node(depth-1), node(depth-1)), 100},
353354
{fmt.Sprintf("%v ? %v : %v", node(depth-1), node(depth-1), node(depth-1)), 100},
354355
{fmt.Sprintf("%v ?: %v", node(depth-1), node(depth-1)), 20},
355356
})

0 commit comments

Comments
 (0)