portainer/portainer

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

Summary

Maintainability
A
35 mins
Test Coverage

Method Handler.helmShow has 5 return statements (exceeds 4 allowed).
Open

func (handler *Handler) helmShow(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    repo := r.URL.Query().Get("repo")
    if repo == "" {
        return httperror.BadRequest("Bad request", errors.New("missing `repo` query parameter"))
    }
Severity: Major
Found in api/http/handler/helm/helm_show.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status