Remove unnecessary type casting
This commit is contained in:
@@ -86,9 +86,9 @@ func FileServer(r chi.Router, path string, root http.FileSystem) {
|
||||
}
|
||||
path += "*"
|
||||
|
||||
r.Get(path, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
r.Get(path, func(w http.ResponseWriter, r *http.Request) {
|
||||
fs.ServeHTTP(w, r)
|
||||
}))
|
||||
})
|
||||
}
|
||||
|
||||
func InjectLogger(next http.Handler) http.Handler {
|
||||
|
||||
Reference in New Issue
Block a user