Skip to content

Commit

Permalink
Merge pull request #6 from tkuchiki/fix-no-filter-options
Browse files Browse the repository at this point in the history
Fix not working when no filter options
  • Loading branch information
Konboi authored Mar 29, 2018
2 parents 1210568 + 1b2556f commit 4291edb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions csviewer.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ func (v *Csviewer) Print(opt *sortOption) {
}

func (v *Csviewer) filter(rowMap map[string]interface{}) bool {
if len(v.filters) == 0 {
return true
}

values := make(map[string]interface{}, 0)

for key, val := range rowMap {
Expand Down

0 comments on commit 4291edb

Please sign in to comment.