portainer/portainer

View on GitHub
api/http/handler/registries/registry_delete.go

Summary

Maintainability
A
45 mins
Test Coverage

Method Handler.registryDelete has 7 return statements (exceeds 4 allowed).
Open

func (handler *Handler) registryDelete(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    securityContext, err := security.RetrieveRestrictedRequestContext(r)
    if err != nil {
        return httperror.InternalServerError("Unable to retrieve info from request context", err)
    }
Severity: Major
Found in api/http/handler/registries/registry_delete.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status