portainer/portainer

View on GitHub
api/http/handler/stacks/handler.go

Summary

Maintainability
A
45 mins
Test Coverage

Method Handler.checkUniqueStackNameInDocker has 7 return statements (exceeds 4 allowed).
Open

func (handler *Handler) checkUniqueStackNameInDocker(endpoint *portainer.Endpoint, name string, stackID portainer.StackID, swarmMode bool) (bool, error) {
    isUniqueStackName, err := handler.checkUniqueStackName(endpoint, name, stackID)
    if err != nil {
        return false, err
    }
Severity: Major
Found in api/http/handler/stacks/handler.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status