Skip to content

Commit

Permalink
lint: data/table: update Table.FormatterFunc()
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Aug 18, 2024
1 parent 416ea3d commit 7fe3fd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/table/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ func WriteCSVSimple(cols []string, rows [][]string, filename string) error {
// supplied and `FormatMap` is empty. If FormatMap is not empty, a function for it is
// returned.`
func (tbl *Table) FormatterFunc() func(val string, colIdx uint) (any, error) {
if tbl.FormatMap == nil || len(tbl.FormatMap) == 0 {
if len(tbl.FormatMap) == 0 {
if tbl.FormatFunc != nil {
return tbl.FormatFunc
}
// return format.FormatStrings
}

return func(val string, colIdx uint) (any, error) {
Expand Down

0 comments on commit 7fe3fd8

Please sign in to comment.