mirror of
https://github.com/charmbracelet/lipgloss.git
synced 2024-10-05 18:28:00 +03:00
chore: apply gofumpt to all files (#255)
Apply gofumpt to all files to correct minor formatting issues. Signed-off-by: Michael Lorant <michael.lorant@nine.com.au>
This commit is contained in:
parent
04def9df3e
commit
59874c2afa
2
align.go
2
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 //nolint:gomnd
|
||||
if strHeight+topPadding+bottomPadding > height {
|
||||
topPadding--
|
||||
} else if strHeight+topPadding+bottomPadding < height {
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user