summaryrefslogtreecommitdiff
path: root/table.go
diff options
context:
space:
mode:
Diffstat (limited to 'table.go')
-rw-r--r--table.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/table.go b/table.go
index e26bbe2..64c87b1 100644
--- a/table.go
+++ b/table.go
@@ -287,14 +287,8 @@ func (f *File) AutoFilter(sheet, hcell, vcell, format string) error {
}
formatSet, _ := parseAutoFilterSet(format)
-
- var cellStart, cellEnd string
- if cellStart, err = CoordinatesToCellName(hcol, hrow); err != nil {
- return err
- }
- if cellEnd, err = CoordinatesToCellName(vcol, vrow); err != nil {
- return err
- }
+ cellStart, _ := CoordinatesToCellName(hcol, hrow)
+ cellEnd, _ := CoordinatesToCellName(vcol, vrow)
ref, filterDB := cellStart+":"+cellEnd, "_xlnm._FilterDatabase"
wb := f.workbookReader()
sheetID := f.GetSheetIndex(sheet)