Indexes using slices instead of pointers of slice
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user