Skip to content

Commit

Permalink
Revert false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed May 10, 2024
1 parent fd7665b commit 74dc254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/inputs/webhooks/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type Webhooks struct {
ReadTimeout config.Duration `toml:"read_timeout"`
WriteTimeout config.Duration `toml:"write_timeout"`

GitHub *github.GithubWebhook `toml:"github"`
Github *github.GithubWebhook `toml:"github"`
Filestack *filestack.FilestackWebhook `toml:"filestack"`
Mandrill *mandrill.MandrillWebhook `toml:"mandrill"`
Rollbar *rollbar.RollbarWebhook `toml:"rollbar"`
Expand Down
4 changes: 2 additions & 2 deletions plugins/inputs/webhooks/webhooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func TestAvailableWebhooks(t *testing.T) {
t.Errorf("expected to %v.\nGot %v", expected, wb.AvailableWebhooks())
}

wb.GitHub = &github.GithubWebhook{Path: "/github"}
expected = append(expected, wb.GitHub)
wb.Github = &github.GithubWebhook{Path: "/github"}
expected = append(expected, wb.Github)
if !reflect.DeepEqual(wb.AvailableWebhooks(), expected) {
t.Errorf("expected to be %v.\nGot %v", expected, wb.AvailableWebhooks())
}
Expand Down

0 comments on commit 74dc254

Please sign in to comment.