From 378a1e288c82ac278c1532ee6fa3241a89d1ed75 Mon Sep 17 00:00:00 2001 From: MengZn Date: Sun, 10 Nov 2019 23:38:03 +0800 Subject: [PATCH] fix some typo --- metric/sink/datadog.go | 2 +- trigger/trigger_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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") } }