From 7a19af5d15d2cdc369f5ac93901f986c82ec46ce Mon Sep 17 00:00:00 2001 From: Dmytro Aleksieiev Date: Mon, 5 Feb 2024 22:05:33 +0100 Subject: [PATCH] Update pkg/notify/notify.go Co-authored-by: Bartlomiej Plotka Signed-off-by: Dmytro Aleksieiev --- pkg/notify/notify.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/notify/notify.go b/pkg/notify/notify.go index 16af656..70f631b 100644 --- a/pkg/notify/notify.go +++ b/pkg/notify/notify.go @@ -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 }