Skip to content

Commit 6f6c541

Browse files
committed
fix: lints
1 parent d277740 commit 6f6c541

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

internal/status/status.go

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,19 +362,28 @@ func printTable(w io.Writer, title string, rows []OutputItem) {
362362
// Set title as header (merged across all columns)
363363
table.Header(title, title)
364364

365+
var appendError error
366+
365367
// Add data rows with values colored based on type
366368
for _, row := range rows {
367369
if row.Value != "" {
368370
switch row.Type {
369371
case Link:
370-
table.Append(row.Label, utils.Aqua(row.Value))
372+
appendError = table.Append(row.Label, utils.Aqua(row.Value))
371373
case Key:
372-
table.Append(row.Label, utils.Yellow(row.Value))
374+
appendError = table.Append(row.Label, utils.Yellow(row.Value))
373375
case Text:
374-
table.Append(row.Label, row.Value)
376+
appendError = table.Append(row.Label, row.Value)
375377
}
376378
}
377379
}
378380

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

0 commit comments

Comments
 (0)