portainer/portainer

View on GitHub
api/http/handler/resourcecontrols/resourcecontrol_delete.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func (handler *Handler) resourceControlDelete(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    resourceControlID, err := request.RetrieveNumericRouteVariableValue(r, "id")
    if err != nil {
        return httperror.BadRequest("Invalid resource control identifier route variable", err)
    }
Severity: Major
Found in api/http/handler/resourcecontrols/resourcecontrol_delete.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status