Skip to content

Commit

Permalink
[MM-866] Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavaggarwal2308 committed Oct 17, 2024
1 parent c9b9814 commit 6222082
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/webhook_jira.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6222082

Please sign in to comment.