mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-19 09:38:03 +02:00
core/lint: upgrade golangci-lint, replace interface{} with any (#5099)
* core/lint: upgrade golangci-lint, replace interface{} with any * regen proto
This commit is contained in:
parent
614048ae9c
commit
1a5b8b606f
135 changed files with 341 additions and 340 deletions
|
@ -35,7 +35,7 @@ func TestNewServer(t *testing.T) {
|
|||
Addr: ":0",
|
||||
Insecure: true,
|
||||
},
|
||||
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
||||
fmt.Fprintln(w, "Hello, http")
|
||||
}),
|
||||
false,
|
||||
|
@ -45,7 +45,7 @@ func TestNewServer(t *testing.T) {
|
|||
&ServerOptions{
|
||||
Addr: ":0",
|
||||
},
|
||||
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
||||
fmt.Fprintln(w, "Hello, http")
|
||||
}),
|
||||
true,
|
||||
|
@ -55,7 +55,7 @@ func TestNewServer(t *testing.T) {
|
|||
&ServerOptions{
|
||||
Insecure: true,
|
||||
},
|
||||
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
||||
fmt.Fprintln(w, "Hello, http")
|
||||
}),
|
||||
false,
|
||||
|
@ -63,7 +63,7 @@ func TestNewServer(t *testing.T) {
|
|||
{
|
||||
"empty handler",
|
||||
nil,
|
||||
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
||||
fmt.Fprintln(w, "Hello, http")
|
||||
}),
|
||||
true,
|
||||
|
@ -73,7 +73,7 @@ func TestNewServer(t *testing.T) {
|
|||
&ServerOptions{
|
||||
Addr: ":65536",
|
||||
Insecure: true,
|
||||
}, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
}, http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
||||
fmt.Fprintln(w, "Hello, http")
|
||||
}),
|
||||
true,
|
||||
|
@ -83,7 +83,7 @@ func TestNewServer(t *testing.T) {
|
|||
&ServerOptions{
|
||||
TLSConfig: &tls.Config{},
|
||||
},
|
||||
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
||||
fmt.Fprintln(w, "Hello, http")
|
||||
}),
|
||||
false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue