middlewares/pprof/middleware.go

Summary

Maintainability
A
35 mins
Test Coverage

Function Middleware has 5 return statements (exceeds 4 allowed).
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
Severity: Major
Found in middlewares/pprof/middleware.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status