Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 024cbb8

Browse files
committed
chore: minor linter fixes
1 parent 1a03ade commit 024cbb8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/remote/client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func TestClientStore(t *testing.T) {
9292

9393
func TestClientStoreHTTPError(t *testing.T) {
9494
t.Parallel()
95-
h := func(w http.ResponseWriter, r *http.Request) {
95+
h := func(w http.ResponseWriter, _ *http.Request) {
9696
http.Error(w, "bad", http.StatusUnauthorized)
9797
}
9898
ts := httptest.NewServer(http.HandlerFunc(h))
@@ -111,7 +111,7 @@ func TestClientStoreHTTPError(t *testing.T) {
111111

112112
func TestClientStoreHTTPBasic(t *testing.T) {
113113
t.Parallel()
114-
h := func(w http.ResponseWriter, r *http.Request) {
114+
h := func(_ http.ResponseWriter, r *http.Request) {
115115
u, pwd, ok := r.BasicAuth()
116116
require.True(t, ok)
117117
assert.Equal(t, "usertest", u)
@@ -138,7 +138,7 @@ func TestClientStoreHTTPBasic(t *testing.T) {
138138

139139
func TestClientStoreHeaders(t *testing.T) {
140140
t.Parallel()
141-
h := func(w http.ResponseWriter, r *http.Request) {
141+
h := func(_ http.ResponseWriter, r *http.Request) {
142142
assert.Equal(t, r.Header.Get("X-Prometheus-Remote-Write-Version"), "0.1.0")
143143
assert.Equal(t, r.Header.Get("X-MY-CUSTOM-HEADER"), "fake")
144144
}

pkg/remotewrite/remotewrite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func TestOutputConvertToPbSeries_WithPreviousState(t *testing.T) {
183183
})
184184
require.Len(t, o.tsdb, 1)
185185
require.Equal(t, tc.expSeries, len(pbseries))
186-
assert.Equal(t, tc.expCount, swm.Measure.(*metrics.CounterSink).Value) //nolint:forcetypeassert
186+
assert.Equal(t, tc.expCount, swm.Measure.(*metrics.CounterSink).Value)
187187
assert.Equal(t, tc.expLatest, swm.Latest)
188188
})
189189
}

0 commit comments

Comments
 (0)