Skip to content

Commit

Permalink
Apply gofumpt to all files
Browse files Browse the repository at this point in the history
Apply gofumpt to all files to correct minor formatting issues.

Signed-off-by: Michael Lorant <michael.lorant@nine.com.au>
  • Loading branch information
mikelorant committed Jan 30, 2024
1 parent fb3000d commit c93ea98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion align.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 //nolint:gomnd
if strHeight+topPadding+bottomPadding > height {
topPadding--
} else if strHeight+topPadding+bottomPadding < height {
Expand Down
2 changes: 1 addition & 1 deletion borders.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c93ea98

Please sign in to comment.