portainer/portainer

View on GitHub
api/http/handler/templates/template_file_old.go

Summary

Maintainability
A
40 mins
Test Coverage

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

func (handler *Handler) templateFileOld(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    log.Warn().Msg("This api is deprecated. Please use /templates/{id}/file instead")

    var payload filePayload
    err := request.DecodeAndValidateJSONPayload(r, &payload)
Severity: Major
Found in api/http/handler/templates/template_file_old.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status