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
@@ -30,9 +30,9 @@ func (m *MockArtistIndex) SetData(j string, length int) {
}
}
func (m *MockArtistIndex) GetAll() (*domain.ArtistIndexes, error) {
func (m *MockArtistIndex) GetAll() (domain.ArtistIndexes, error) {
if m.err {
return nil, errors.New("Error!")
}
return &m.data, nil
return m.data, nil
}