Skip to content

Commit

Permalink
Merge 3f0a438 into 81dd4da
Browse files Browse the repository at this point in the history
  • Loading branch information
jedib0t committed Aug 19, 2018
2 parents 81dd4da + 3f0a438 commit 07fc6a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions table/table.go
Expand Up @@ -3,7 +3,6 @@ package table
import (
"fmt"
"io"
"reflect"
"strings"
"unicode/utf8"

Expand Down Expand Up @@ -253,8 +252,8 @@ func (t *Table) analyzeAndStringify(row Row, isHeader bool, isFooter bool) rowSt

// convert to a string and store it in the row
var colStr string
if reflect.TypeOf(col).Kind() == reflect.String {
colStr = col.(string)
if colStrVal, ok := col.(string); ok {
colStr = colStrVal
} else {
colStr = fmt.Sprint(col)
}
Expand Down

0 comments on commit 07fc6a8

Please sign in to comment.