From 855ea6cbe45da71848eedcf61cd6deb0f88793d3 Mon Sep 17 00:00:00 2001 From: davidmdm Date: Tue, 10 Oct 2023 14:27:53 -0400 Subject: [PATCH] unconditionally remove leading and trailing lines from code blocks --- format/format.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/format/format.go b/format/format.go index 9771d17..5eb3703 100644 --- a/format/format.go +++ b/format/format.go @@ -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 {