diff --git a/metric/sink/datadog.go b/metric/sink/datadog.go index 7bebfcb8..922c59fe 100644 --- a/metric/sink/datadog.go +++ b/metric/sink/datadog.go @@ -140,7 +140,7 @@ func (d *Datadog) Client() *http.Client { return d.client } -// calculate the differene between now and midnight. +// calculate the differences between now and midnight. func midnightDiff() time.Duration { a := time.Now() b := time.Date(a.Year(), a.Month(), a.Day()+1, 0, 0, 0, 0, a.Location()) diff --git a/trigger/trigger_test.go b/trigger/trigger_test.go index ff6b7efd..ff3dbecf 100644 --- a/trigger/trigger_test.go +++ b/trigger/trigger_test.go @@ -271,7 +271,7 @@ func TestTrigger_SkipBranch(t *testing.T) { _, err := triggerer.Trigger(noContext, dummyRepo, dummyHook) if err != nil { - t.Errorf("Expect build silenty skipped if branch does not match") + t.Errorf("Expect build silently skipped if branch does not match") } } @@ -309,7 +309,7 @@ func TestTrigger_SkipEvent(t *testing.T) { _, err := triggerer.Trigger(noContext, dummyRepo, dummyHook) if err != nil { - t.Errorf("Expect build silenty skipped if event does not match") + t.Errorf("Expect build silently skipped if event does not match") } } @@ -347,7 +347,7 @@ func TestTrigger_SkipAction(t *testing.T) { _, err := triggerer.Trigger(noContext, dummyRepo, dummyHook) if err != nil { - t.Errorf("Expect build silenty skipped if action does not match") + t.Errorf("Expect build silently skipped if action does not match") } }