From 6222082b28f3c39b262fb6a11b88f31a5b7d5872 Mon Sep 17 00:00:00 2001 From: raghavaggarwal2308 Date: Thu, 17 Oct 2024 16:48:38 +0530 Subject: [PATCH] [MM-866] Fix lint error --- server/webhook_jira.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/webhook_jira.go b/server/webhook_jira.go index 0a7bf91e..02ac5c52 100644 --- a/server/webhook_jira.go +++ b/server/webhook_jira.go @@ -65,9 +65,9 @@ func (jwh *JiraWebhook) expandIssue(p *Plugin, instanceID types.ID) error { if instance.JWTInstance == nil { // Using API token to fetch the issue details as users were not getting notified for the events triggered by a non connected user i.e. oauth token is absent if p.getConfig().AdminAPIToken != "" { - issue, err := p.GetIssueDataWithAPIToken(jwh.Issue.Key, instance.GetID().String()) - if err != nil { - return err + issue, apiTokenErr := p.GetIssueDataWithAPIToken(jwh.Issue.Key, instance.GetID().String()) + if apiTokenErr != nil { + return apiTokenErr } jwh.Issue = *issue