mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 00:10:45 +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
|
@ -107,7 +107,7 @@ func (p *Proxy) setHandlers(opts *config.Options) error {
|
|||
log.Warn(context.TODO()).Msg("proxy: configuration has no policies")
|
||||
}
|
||||
r := httputil.NewRouter()
|
||||
r.NotFoundHandler = httputil.HandlerFunc(func(w http.ResponseWriter, r *http.Request) error {
|
||||
r.NotFoundHandler = httputil.HandlerFunc(func(_ http.ResponseWriter, r *http.Request) error {
|
||||
return httputil.NewError(http.StatusNotFound, fmt.Errorf("%s route unknown", r.Host))
|
||||
})
|
||||
r.SkipClean(true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue