portainer/portainer

View on GitHub
api/http/handler/helm/user_helm_repos.go

Summary

Maintainability
A
40 mins
Test Coverage

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

func (handler *Handler) userCreateHelmRepo(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    tokenData, err := security.RetrieveTokenData(r)
    if err != nil {
        return httperror.InternalServerError("Unable to retrieve user authentication token", err)
    }
Severity: Major
Found in api/http/handler/helm/user_helm_repos.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status