middlewares/pprof/middleware.go
Function Middleware
has 5 return statements (exceeds 4 allowed). Open
Open
func Middleware(ctx *vox.Context, req *vox.Request, res *vox.Response) {
if strings.HasPrefix(req.URL.Path, "/debug/pprof/cmdline") {
res.DontRespond = true
pprof.Cmdline(res.Writer, req.Request)
return