portainer/portainer

View on GitHub
api/http/handler/teams/team_delete.go

Summary

Maintainability
A
45 mins
Test Coverage

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

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

    There are no issues that match your filters.

    Category
    Status