portainer/portainer

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

Summary

Maintainability
A
45 mins
Test Coverage

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

func (handler *Handler) endpointAssociationDelete(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    endpointID, err := request.RetrieveNumericRouteVariableValue(r, "id")
    if err != nil {
        return httperror.BadRequest("Invalid environment identifier route variable", err)
    }
Severity: Major
Found in api/http/handler/endpoints/endpoint_association_delete.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status