Skip to content

Commit 26a8360

Browse files
committed
fix issue with reusing variable err
1 parent dde4908 commit 26a8360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/export/excel.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func IssuesToExcel(ctx *context.Context, issues issues_model.IssueList) *exceliz
2424
log.Error("cannot get first cell: %v", err)
2525
return f
2626
}
27-
err := sw.SetRow(cell, []interface{}{
27+
err = sw.SetRow(cell, []interface{}{
2828
excelize.Cell{Value: "ID"},
2929
excelize.Cell{Value: "Title"},
3030
excelize.Cell{Value: "Status"},
@@ -74,7 +74,7 @@ func IssuesToExcel(ctx *context.Context, issues issues_model.IssueList) *exceliz
7474
}
7575

7676
cell, _ := excelize.CoordinatesToCellName(1, i+1)
77-
err := sw.SetRow(cell, []interface{}{
77+
err = sw.SetRow(cell, []interface{}{
7878
excelize.Cell{Value: issue.Index},
7979
excelize.Cell{Value: issue.Title},
8080
excelize.Cell{Value: issue.State()},

0 commit comments

Comments
 (0)