mirror of https://github.com/statping/statping
remove commented code
parent
2cd0fd85f8
commit
ad4c02858c
|
@ -73,7 +73,6 @@ func getVisibleIncidentsOfService(service *services.Service) []incidents.Inciden
|
||||||
} else if checkResolvedVisibility(incident.Updates) {
|
} else if checkResolvedVisibility(incident.Updates) {
|
||||||
incidentVar := *incident
|
incidentVar := *incident
|
||||||
sortUpdates(incidentVar.Updates)
|
sortUpdates(incidentVar.Updates)
|
||||||
//reverse(incidentVar.Updates)
|
|
||||||
visibleIncidents = append(visibleIncidents, incidentVar)
|
visibleIncidents = append(visibleIncidents, incidentVar)
|
||||||
visibleIncidentIds = append(visibleIncidentIds, incident.Id)
|
visibleIncidentIds = append(visibleIncidentIds, incident.Id)
|
||||||
}
|
}
|
||||||
|
@ -88,12 +87,6 @@ func sortUpdates(updates []*incidents.IncidentUpdate) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/*func reverse(incidents []*incidents.IncidentUpdate) {
|
|
||||||
for i, j := 0, len(incidents)-1; i < j; i, j = i+1, j-1 {
|
|
||||||
incidents[i], incidents[j] = incidents[j], incidents[i]
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
func hasZeroUpdates(Updates []*incidents.IncidentUpdate) bool {
|
func hasZeroUpdates(Updates []*incidents.IncidentUpdate) bool {
|
||||||
if len(Updates) == 0 {
|
if len(Updates) == 0 {
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue