1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-06-27 00:21:07 +02:00

var total was having an issues

This commit is contained in:
Jay Patel
2021-03-03 10:05:31 +11:00
parent 97404d7e0c
commit 9c2ab8f856

View File

@ -24,8 +24,8 @@ func GetAllIssues(client *jira.Client, searchString string) ([]jira.Issue, error
return nil, err return nil, err
} }
if issues == nil {
total := resp.Total total := resp.Total
if issues == nil {
issues = make([]jira.Issue, 0, total) issues = make([]jira.Issue, 0, total)
} }
issues = append(issues, chunk...) issues = append(issues, chunk...)