config: gofmt

This commit is contained in:
Caleb Doxsey 2020-04-16 09:35:56 -06:00 committed by Caleb Doxsey
parent d6591e4109
commit 5ecfa34361
2 changed files with 3 additions and 4 deletions

View file

@ -326,7 +326,6 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
p.Handler.ServeHTTP(w, r)
}
// routeMatcherFuncFromPolicy returns a mux matcher function which compares an http request with a policy.
//
// Routes can be filtered by the `source`, `prefix`, `path` and `regex` fields in the policy config.
@ -365,4 +364,4 @@ func routeMatcherFuncFromPolicy(policy config.Policy) mux.MatcherFunc {
return func(r *http.Request, rm *mux.RouteMatch) bool {
return sourceMatches(r) && prefixMatches(r) && pathMatches(r) && regexMatches(r)
}
}
}