initialize queue ids slice

This commit is contained in:
Radu Ioan Fericean
2014-08-01 21:03:31 +03:00
parent d07d772013
commit 7cbf5c2b56

View File

@@ -55,7 +55,7 @@ func NewStats(ratingDb RatingStorage) *Stats {
func (s *Stats) GetQueueIds(in int, ids *[]string) error {
s.mux.Lock()
defer s.mux.Unlock()
var result []string
result := make([]string)
for id, _ := range s.queues {
result = append(result, id)
}