Skip to content

Commit 9c2ab8f

Browse files
author
Jay Patel
committed
var total was having an issues
1 parent 97404d7 commit 9c2ab8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pagination/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ func GetAllIssues(client *jira.Client, searchString string) ([]jira.Issue, error
2424
return nil, err
2525
}
2626

27+
total := resp.Total
2728
if issues == nil {
28-
total := resp.Total
2929
issues = make([]jira.Issue, 0, total)
3030
}
3131
issues = append(issues, chunk...)

0 commit comments

Comments
 (0)