portainer/portainer

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

Summary

Maintainability
A
35 mins
Test Coverage

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

func (handler *Handler) webhookInvoke(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    webhookID, err := retrieveUUIDRouteVariableValue(r, "webhookID")
    if err != nil {
        return httperror.BadRequest("Invalid webhook identifier route variable", err)
    }
Severity: Major
Found in api/http/handler/stacks/webhook_invoke.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status