summaryrefslogtreecommitdiffstats
path: root/modules/web/wrap_convert.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/web/wrap_convert.go')
-rw-r--r--modules/web/wrap_convert.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/web/wrap_convert.go b/modules/web/wrap_convert.go
index f2e05de7c1..d4a24b3ad4 100644
--- a/modules/web/wrap_convert.go
+++ b/modules/web/wrap_convert.go
@@ -87,7 +87,7 @@ func convertHandler(handler interface{}) wrappedHandlerFunc {
}
case func(http.Handler) http.Handler:
return func(resp http.ResponseWriter, req *http.Request, others ...wrappedHandlerFunc) (done bool, deferrable func()) {
- var next = http.HandlerFunc(func(http.ResponseWriter, *http.Request) {})
+ next := http.HandlerFunc(func(http.ResponseWriter, *http.Request) {})
if len(others) > 0 {
next = wrapInternal(others)
}