Skip to content

Commit

Permalink
unconditionally remove leading and trailing lines from code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmdm committed Apr 3, 2024
1 parent 52739c5 commit 0db242c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions format/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,11 +543,6 @@ func (f *fumpter) applyPre(c *astutil.Cursor) {
cond = parent.Cond
}

if len(node.List) > 1 && sign == nil {
// only if we have a single statement, or if
// it's a func body.
break
}
var bodyPos, bodyEnd token.Pos

if len(node.List) > 0 {
Expand Down

0 comments on commit 0db242c

Please sign in to comment.