portainer/portainer

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

Summary

Maintainability
A
40 mins
Test Coverage

Method Handler.createFDOProfileFromFileContent has 6 return statements (exceeds 4 allowed).
Open

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

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

    There are no issues that match your filters.

    Category
    Status