portainer/portainer

View on GitHub
api/http/handler/kubernetes/toggle_system.go

Summary

Maintainability
A
40 mins
Test Coverage

Method Handler.namespacesToggleSystem has 6 return statements (exceeds 4 allowed).
Open

func (handler *Handler) namespacesToggleSystem(rw http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    endpoint, err := middlewares.FetchEndpoint(r)
    if err != nil {
        return httperror.NotFound("Unable to find an environment on request context", err)
    }
Severity: Major
Found in api/http/handler/kubernetes/toggle_system.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status