mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-01-22 03:10:10 +02:00
Uses nil instead of empty opts
This commit is contained in:
parent
5789d26f6d
commit
25ead88f67
3
issue.go
3
issue.go
@ -686,8 +686,7 @@ func (s *IssueService) UpdateWithOptions(issue *Issue, opts *UpdateQueryOptions)
|
||||
//
|
||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue
|
||||
func (s *IssueService) Update(issue *Issue) (*Issue, *Response, error) {
|
||||
opts := &UpdateQueryOptions{}
|
||||
return s.UpdateWithOptions(issue, opts)
|
||||
return s.UpdateWithOptions(issue, nil)
|
||||
}
|
||||
|
||||
// UpdateIssue updates an issue from a JSON representation. The issue is found by key.
|
||||
|
Loading…
x
Reference in New Issue
Block a user