portainer/portainer

View on GitHub
api/http/handler/system/system_upgrade.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func (handler *Handler) guessLocalEndpoint() (*portainer.Endpoint, error) {
    platform, err := platform.DetermineContainerPlatform()
    if err != nil {
        return nil, errors.Wrap(err, "failed to determine container platform")
    }
Severity: Major
Found in api/http/handler/system/system_upgrade.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status