Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Qantas94Heavy committed Apr 19, 2024
1 parent 64baa42 commit fd46d12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions sentry/issue_alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,10 @@ func (s *IssueAlertsService) Create(ctx context.Context, organizationSlug string
return nil, resp, errors.New("missing task uuid")
}
// We just received a reference to an async task, we need to check another endpoint to retrieve the issue alert we created
alert, resp, err := s.getIssueAlertFromTaskDetail(ctx, organizationSlug, projectSlug, *alert.TaskUUID)
alert, resp, err = s.getIssueAlertFromTaskDetail(ctx, organizationSlug, projectSlug, *alert.TaskUUID)
if err != nil {
return nil, resp, err
}
alert.TaskUUID = nil
return alert, resp, nil
}

alert.TaskUUID = nil
Expand Down
4 changes: 1 addition & 3 deletions sentry/metric_alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,10 @@ func (s *MetricAlertsService) Create(ctx context.Context, organizationSlug strin
return nil, resp, errors.New("missing task uuid")
}
// We just received a reference to an async task, we need to check another endpoint to retrieve the metric alert we created
alert, resp, err := s.getMetricAlertFromMetricAlertTaskDetail(ctx, organizationSlug, projectSlug, *alert.TaskUUID)
alert, resp, err = s.getMetricAlertFromMetricAlertTaskDetail(ctx, organizationSlug, projectSlug, *alert.TaskUUID)
if err != nil {
return nil, resp, err
}
alert.TaskUUID = nil
return alert, resp, nil
}

alert.TaskUUID = nil
Expand Down

0 comments on commit fd46d12

Please sign in to comment.