Skip to content

Commit 3b1adbd

Browse files
committed
fix: lints
1 parent d277740 commit 3b1adbd

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

internal/status/status.go

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ func PrettyPrint(w io.Writer, exclude ...string) {
309309
fmt.Fprintln(w)
310310
}
311311
}
312-
313312
}
314313

315314
func printTable(w io.Writer, title string, rows []OutputItem) {
@@ -362,19 +361,28 @@ func printTable(w io.Writer, title string, rows []OutputItem) {
362361
// Set title as header (merged across all columns)
363362
table.Header(title, title)
364363

364+
var appendError error
365+
365366
// Add data rows with values colored based on type
366367
for _, row := range rows {
367368
if row.Value != "" {
368369
switch row.Type {
369370
case Link:
370-
table.Append(row.Label, utils.Aqua(row.Value))
371+
appendError = table.Append(row.Label, utils.Aqua(row.Value))
371372
case Key:
372-
table.Append(row.Label, utils.Yellow(row.Value))
373+
appendError = table.Append(row.Label, utils.Yellow(row.Value))
373374
case Text:
374-
table.Append(row.Label, row.Value)
375+
appendError = table.Append(row.Label, row.Value)
375376
}
376377
}
377378
}
378379

379-
table.Render()
380+
if appendError != nil {
381+
fmt.Fprintln(utils.GetDebugLogger(), appendError)
382+
}
383+
384+
renderError := table.Render()
385+
if renderError != nil {
386+
fmt.Fprintln(utils.GetDebugLogger(), renderError)
387+
}
380388
}

0 commit comments

Comments
 (0)