More slices instead of pointers of slice

This commit is contained in:
Deluan
2016-03-20 13:14:04 -04:00
parent 3f0030738a
commit 21b39d922c
15 changed files with 37 additions and 37 deletions
+2 -2
View File
@@ -29,10 +29,10 @@ func (r *playlistRepository) Get(id string) (*domain.Playlist, error) {
return rec.(*domain.Playlist), err
}
func (r *playlistRepository) GetAll(options domain.QueryOptions) (*domain.Playlists, error) {
func (r *playlistRepository) GetAll(options domain.QueryOptions) (domain.Playlists, error) {
var as = make(domain.Playlists, 0)
err := r.loadAll(&as, options)
return &as, err
return as, err
}
func (r *playlistRepository) PurgeInactive(active domain.Playlists) ([]string, error) {