api/http/handler/backup/restore.go
Method Handler.restore
has 5 return statements (exceeds 4 allowed). Open
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)
}