portainer/portainer

View on GitHub
api/http/handler/edgestacks/edgestack_create_file.go

Summary

Maintainability
A
45 mins
Test Coverage

Method edgeStackFromFileUploadPayload.Validate has 7 return statements (exceeds 4 allowed).
Open

func (payload *edgeStackFromFileUploadPayload) Validate(r *http.Request) error {
    name, err := request.RetrieveMultiPartFormValue(r, "Name", false)
    if err != nil {
        return httperrors.NewInvalidPayloadError("Invalid stack name")
    }
Severity: Major
Found in api/http/handler/edgestacks/edgestack_create_file.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status