portainer/portainer

View on GitHub
api/http/handler/upload/upload_tls.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func (handler *Handler) uploadTLS(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    certificate, err := request.RetrieveRouteVariableValue(r, "certificate")
    if err != nil {
        return httperror.BadRequest("Invalid certificate route variable", err)
    }
Severity: Major
Found in api/http/handler/upload/upload_tls.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status