portainer/portainer

View on GitHub
api/http/handler/hostmanagement/fdo/profile_update.go

Summary

Maintainability
A
55 mins
Test Coverage

Method Handler.updateProfile has 9 return statements (exceeds 4 allowed).
Open

func (handler *Handler) updateProfile(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    id, err := request.RetrieveNumericRouteVariableValue(r, "id")
    if err != nil {
        return httperror.BadRequest("Bad request", errors.New("missing 'id' query parameter"))
    }
Severity: Major
Found in api/http/handler/hostmanagement/fdo/profile_update.go - About 55 mins to fix

    There are no issues that match your filters.

    Category
    Status