From 4ab9d2918243a4ca0ad9a7ea2751ef3409b2fff2 Mon Sep 17 00:00:00 2001 From: Michael Lorant Date: Mon, 29 Jan 2024 14:47:49 +1100 Subject: [PATCH] Apply gofumpt to all files Apply gofumpt to all files to correct minor formatting issues. Signed-off-by: Michael Lorant --- align.go | 2 +- borders.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/align.go b/align.go index 6c0fb2dc..0ac2f387 100644 --- a/align.go +++ b/align.go @@ -69,7 +69,7 @@ func alignTextVertical(str string, pos Position, height int, _ *termenv.Style) s case Top: return str + strings.Repeat("\n", height-strHeight) case Center: - var topPadding, bottomPadding = (height - strHeight) / 2, (height - strHeight) / 2 + topPadding, bottomPadding := (height-strHeight)/2, (height-strHeight)/2 if strHeight+topPadding+bottomPadding > height { topPadding-- } else if strHeight+topPadding+bottomPadding < height { diff --git a/borders.go b/borders.go index f244b53a..d84bfec4 100644 --- a/borders.go +++ b/borders.go @@ -411,7 +411,7 @@ func (s Style) styleBorder(border string, fg, bg TerminalColor) string { return border } - var style = termenv.Style{} + style := termenv.Style{} if fg != noColor { style = style.Foreground(fg.color(s.r))