1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2024-11-24 08:22:42 +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
}
total := resp.Total
if issues == nil {
total := resp.Total
issues = make([]jira.Issue, 0, total)
}
issues = append(issues, chunk...)