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:
@ -36,7 +36,7 @@ func (srv *AliasService) GetAliasOrDefault(userId string, summaryType uint8, val
|
||||
}
|
||||
return value, nil
|
||||
}
|
||||
return "", errors.New("User aliases not initialized")
|
||||
return "", errors.New("user aliases not initialized")
|
||||
}
|
||||
|
||||
func (src *AliasService) IsInitialized(userId string) bool {
|
||||
|
@ -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