portainer/portainer

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

Summary

Maintainability
A
35 mins
Test Coverage

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

func (handler *Handler) fdoConfigure(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    var payload fdoConfigurePayload

    err := request.DecodeAndValidateJSONPayload(r, &payload)
    if err != nil {
Severity: Major
Found in api/http/handler/hostmanagement/fdo/fdo.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status