portainer/portainer

View on GitHub
api/http/handler/endpoints/update_edge_relations.go

Summary

Maintainability
A
45 mins
Test Coverage

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

func (handler *Handler) updateEdgeRelations(tx dataservices.DataStoreTx, endpoint *portainer.Endpoint) error {
    if !endpointutils.IsEdgeEndpoint(endpoint) {
        return nil
    }

Severity: Major
Found in api/http/handler/endpoints/update_edge_relations.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status