From ca43c6511538f50581ec3bbe1e4ee275444f8049 Mon Sep 17 00:00:00 2001 From: xuri Date: Sun, 19 Jul 2020 00:10:42 +0800 Subject: Update test for addTable --- table.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'table.go') 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) -- cgit v1.2.1