1
0
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:
spmassot 2018-10-18 14:31:40 -04:00
parent 5789d26f6d
commit 25ead88f67

View File

@ -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 // JIRA API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue
func (s *IssueService) Update(issue *Issue) (*Issue, *Response, error) { func (s *IssueService) Update(issue *Issue) (*Issue, *Response, error) {
opts := &UpdateQueryOptions{} return s.UpdateWithOptions(issue, nil)
return s.UpdateWithOptions(issue, opts)
} }
// UpdateIssue updates an issue from a JSON representation. The issue is found by key. // UpdateIssue updates an issue from a JSON representation. The issue is found by key.