Skip to content

Commit

Permalink
Update pkg/notify/notify.go
Browse files Browse the repository at this point in the history
Co-authored-by: Bartlomiej Plotka <[email protected]>
Signed-off-by: Dmytro Aleksieiev <[email protected]>
  • Loading branch information
MytkoEnko and bwplotka authored Feb 5, 2024
1 parent 3458c29 commit 7a19af5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/notify/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,8 @@ func (r *Receiver) updateUnknownFields(issueKey string, unknowns tcontainer.Mars
Unknowns: unknowns,
},
}
_, resp, err := r.client.UpdateWithOptions(issueUpdate, nil)
if err != nil {
return handleJiraErrResponse("Issue.UpdateWithOptions", resp, err, r.logger)
if _, resp, err := r.client.UpdateWithOptions(issueUpdate, nil); err != nil {
return handleJiraErrResponse("Issue.UpdateUnknownFields", resp, err, r.logger)
}
return false, nil
}
Expand Down

0 comments on commit 7a19af5

Please sign in to comment.