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 Oct 10, 2023
1 parent a8415d3 commit 855ea6c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions format/format.go
Expand Up @@ -522,11 +522,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 855ea6c

Please sign in to comment.