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

View file

@ -52,7 +52,7 @@ func (m *MockMediaFile) Get(id string) (*domain.MediaFile, error) {
return nil, domain.ErrNotFound
}
func (m *MockMediaFile) FindByAlbum(artistId string) (*domain.MediaFiles, error) {
func (m *MockMediaFile) FindByAlbum(artistId string) (domain.MediaFiles, error) {
if m.err {
return nil, errors.New("Error!")
}
@ -65,5 +65,5 @@ func (m *MockMediaFile) FindByAlbum(artistId string) (*domain.MediaFiles, error)
}
}
return &res, nil
return res, nil
}