portainer/portainer

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

Summary

Maintainability
A
40 mins
Test Coverage

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

func (handler *Handler) registryInspect(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    hasAccess, isAdmin, err := handler.userHasRegistryAccess(r)
    if err != nil {
        return httperror.InternalServerError("Unable to retrieve info from request context", err)
    }
Severity: Major
Found in api/http/handler/registries/registry_inspect.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status