mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
Minor code cleanup.
This commit is contained in:
@ -188,7 +188,7 @@ func (srv *SummaryService) aggregateBy(heartbeats []*models.Heartbeat, summaryTy
|
||||
|
||||
func getMissingIntervals(from, to time.Time, existingSummaries []*models.Summary) []*Interval {
|
||||
if len(existingSummaries) == 0 {
|
||||
return []*Interval{&Interval{from, to}}
|
||||
return []*Interval{{from, to}}
|
||||
}
|
||||
|
||||
intervals := make([]*Interval, 0)
|
||||
|
Reference in New Issue
Block a user