Skip to content

Commit

Permalink
Fix review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
hhellyer committed Dec 12, 2024
1 parent 21721d0 commit 0c41641
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion rest/alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (s *AlertsService) Replace(alert *alerting.Alert) (*http.Response, error) {
return resp, nil
}

// Delete immediately deletes an existing alert.
// Delete deletes an existing alert.
//
// NS1 API docs: https://ns1.com/api/#alert-alertid-delete
func (s *AlertsService) Delete(alertID string) (*http.Response, error) {
Expand Down
1 change: 0 additions & 1 deletion rest/alert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ func TestAlert(t *testing.T) {
compareAlerts(t, alertResponse, &alertToCreate)
})

// TODO Add test for error response when updating fields that can't be changed.
t.Run("Error Duplicate Name", func(t *testing.T) {
defer mock.ClearTestCases()

Expand Down
2 changes: 0 additions & 2 deletions rest/model/alerting/alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ var (
recordAlertType string = "record"
)

// TODO - Allow zones/notifier lists to be passed as structs?
// - Multiple constructors?
func NewZoneAlert(alertName string, subtype string, notifierListIds []string, zoneNames []string) *Alert {
return &Alert{
Name: &alertName,
Expand Down

0 comments on commit 0c41641

Please sign in to comment.