portainer/portainer

View on GitHub
api/http/handler/backup/restore.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func (h *Handler) restore(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    initialized, err := h.adminMonitor.WasInitialized()
    if err != nil {
        return httperror.InternalServerError("Failed to check system initialization", err)
    }
Severity: Major
Found in api/http/handler/backup/restore.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status