File tree Expand file tree Collapse file tree 8 files changed +12
-11
lines changed Expand file tree Collapse file tree 8 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -335,11 +335,11 @@ func TestNewClientFromConfig(t *testing.T) {
335335 handler : func (w http.ResponseWriter , r * http.Request ) {
336336 switch r .URL .Path {
337337 case "/redirected" :
338- fmt .Fprintf (w , ExpectedMessage )
338+ fmt .Fprint (w , ExpectedMessage )
339339 default :
340340 w .Header ().Set ("Location" , "/redirected" )
341341 w .WriteHeader (http .StatusFound )
342- fmt .Fprintf (w , "It should follow the redirect." )
342+ fmt .Fprint (w , "It should follow the redirect." )
343343 }
344344 },
345345 }, {
@@ -359,7 +359,7 @@ func TestNewClientFromConfig(t *testing.T) {
359359 default :
360360 w .Header ().Set ("Location" , "/redirected" )
361361 w .WriteHeader (http .StatusFound )
362- fmt .Fprintf (w , ExpectedMessage )
362+ fmt .Fprint (w , ExpectedMessage )
363363 }
364364 },
365365 },
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
2121 "strings"
2222 "testing"
2323
24- "github.com/golang/protobuf/proto"
24+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
2525 dto "github.com/prometheus/client_model/go"
2626
2727 "github.com/prometheus/common/model"
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import (
1818 "io"
1919 "net/http"
2020
21- "github.com/golang/protobuf/proto"
21+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
2222 "github.com/matttproud/golang_protobuf_extensions/pbutil"
2323 "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg"
2424
Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ package expfmt
1515
1616import (
1717 "bytes"
18- "github.com/golang/protobuf/proto"
19- dto "github.com/prometheus/client_model/go"
2018 "net/http"
2119 "testing"
20+
21+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
22+ dto "github.com/prometheus/client_model/go"
2223)
2324
2425func TestNegotiate (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
2020 "testing"
2121 "time"
2222
23- "github.com/golang/protobuf/proto"
23+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
2424 "github.com/golang/protobuf/ptypes"
2525
2626 dto "github.com/prometheus/client_model/go"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
1919 "strings"
2020 "testing"
2121
22- "github.com/golang/protobuf/proto"
22+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
2323
2424 dto "github.com/prometheus/client_model/go"
2525)
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import (
2424
2525 dto "github.com/prometheus/client_model/go"
2626
27- "github.com/golang/protobuf/proto"
27+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
2828 "github.com/prometheus/common/model"
2929)
3030
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import (
1818 "strings"
1919 "testing"
2020
21- "github.com/golang/protobuf/proto"
21+ "github.com/golang/protobuf/proto" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility.
2222 dto "github.com/prometheus/client_model/go"
2323)
2424
You can’t perform that action at this time.
0 commit comments