Skip to content

Commit

Permalink
chore(lint): remove nil check on []string
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Oct 18, 2024
1 parent 8f7dc35 commit 94c31a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ func (t *Table) constructRows(availableLines int) string {
func (t *Table) constructRow(index int, isOverflow bool) string {
var s strings.Builder

hasHeaders := t.headers != nil && len(t.headers) > 0
hasHeaders := len(t.headers) > 0
height := t.heights[index+btoi(hasHeaders)]
if isOverflow {
height = 1
Expand Down

0 comments on commit 94c31a6

Please sign in to comment.