Skip to content

Commit

Permalink
modify testdata for single statement blocks
Browse files Browse the repository at this point in the history
ensures that empty line before an else-if statement is not removed.
see mvdan#284.
  • Loading branch information
flan6 committed Aug 23, 2024
1 parent 4519030 commit 8e69a67
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions testdata/script/block-single.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ func f() {

println()
}
if true &&
true {
println()

} else if true {
println()
}
for true &&
true {

Expand Down Expand Up @@ -104,6 +111,13 @@ func f() {

println()
}
if true &&
true {
println()

} else if true {
println()
}
for true &&
true {

Expand Down

0 comments on commit 8e69a67

Please sign in to comment.