fix lint error

This commit is contained in:
Paul Roberts 2024-05-01 08:39:45 -10:00
parent 3238a5095c
commit d85fde97b9
1 changed files with 2 additions and 5 deletions
pkg/backend/display

View File

@ -287,8 +287,7 @@ func (r *messageRenderer) render(done bool) {
systemID := len(rows)
printedHeader := false
for _, payload := range r.display.systemEventPayloads {
for i, payload := range r.display.systemEventPayloads {
msg := payload.Color.Colorize(payload.Message)
lines := splitIntoDisplayableLines(msg)
@ -296,8 +295,7 @@ func (r *messageRenderer) render(done bool) {
continue
}
if !printedHeader {
printedHeader = true
if i == 0 {
r.colorizeAndWriteProgress(makeActionProgress(
strconv.Itoa(systemID), " "))
systemID++
@ -324,7 +322,6 @@ func (r *messageRenderer) render(done bool) {
for i, key := range keys {
if i == 0 {
printedHeader = true
r.colorizeAndWriteProgress(makeActionProgress(
strconv.Itoa(systemID),
colors.Yellow+"Downloads"+colors.Reset))