mirror of
https://github.com/interviewstreet/go-jira.git
synced 2024-11-28 08:39:03 +02:00
var total was having an issues
This commit is contained in:
parent
97404d7e0c
commit
9c2ab8f856
@ -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...)
|
||||
|
Loading…
Reference in New Issue
Block a user