Indexes using slices instead of pointers of slice

This commit is contained in:
Deluan
2016-03-20 13:08:24 -04:00
parent 27b7b7ce08
commit 3f0030738a
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -31,10 +31,10 @@ func (r *artistIndexRepository) Get(id string) (*domain.ArtistIndex, error) {
return rec.(*domain.ArtistIndex), err
}
func (r *artistIndexRepository) GetAll() (*domain.ArtistIndexes, error) {
func (r *artistIndexRepository) GetAll() (domain.ArtistIndexes, error) {
var indices = make(domain.ArtistIndexes, 0)
err := r.loadAll(&indices, domain.QueryOptions{Alpha: true})
return &indices, err
return indices, err
}
var _ domain.ArtistIndexRepository = (*artistIndexRepository)(nil)