From 1bf25dc1b2f1f7aca81aedb422f524ad077f8808 Mon Sep 17 00:00:00 2001 From: Lynn Lin Date: Tue, 29 Aug 2017 16:00:11 +0800 Subject: [PATCH] fix issues reported by gofmt and spelling typo (#3127) --- notifier/notifier_test.go | 2 +- util/testutil/roundtrip.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notifier/notifier_test.go b/notifier/notifier_test.go index 8253bb3d0..5d310e5b7 100644 --- a/notifier/notifier_test.go +++ b/notifier/notifier_test.go @@ -442,7 +442,7 @@ func TestLabelSetNotReused(t *testing.T) { func makeInputTargetGroup() *config.TargetGroup { return &config.TargetGroup{ Targets: []model.LabelSet{ - model.LabelSet{ + { model.AddressLabel: model.LabelValue("1.1.1.1:9090"), model.LabelName("notcommon1"): model.LabelValue("label"), }, diff --git a/util/testutil/roundtrip.go b/util/testutil/roundtrip.go index 42c109527..996d11f36 100644 --- a/util/testutil/roundtrip.go +++ b/util/testutil/roundtrip.go @@ -37,7 +37,7 @@ func (rt *roundTripCheckRequest) RoundTrip(r *http.Request) (*http.Response, err } // NewRoundTripCheckRequest creates a new instance of a type that implements http.RoundTripper, -// wich before returning theResponse and theError, executes checkRequest against a http.Request. +// which before returning theResponse and theError, executes checkRequest against a http.Request. func NewRoundTripCheckRequest(checkRequest func(*http.Request), theResponse *http.Response, theError error) http.RoundTripper { return &roundTripCheckRequest{ checkRequest: checkRequest,