From 8c1975b70f6d841fd2b62ed6c54b6ba8b220601e Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 11 Jan 2020 16:56:08 -0500 Subject: [PATCH] Remove unnecessary type casting --- app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.go b/app.go index 5515a05c2..23dc1003d 100644 --- a/app.go +++ b/app.go @@ -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 {