Using pointers for the receivers

This commit is contained in:
Deluan
2016-03-21 23:11:57 -04:00
parent 36160be32a
commit 23cf069100
5 changed files with 49 additions and 49 deletions
+2 -2
View File
@@ -23,10 +23,10 @@ type cover struct {
}
func NewCover(mr domain.MediaFileRepository) Cover {
return cover{mr}
return &cover{mr}
}
func (c cover) Get(id string, size int, out io.Writer) error {
func (c *cover) Get(id string, size int, out io.Writer) error {
mf, err := c.mfileRepo.Get(id)
if err != nil && err != domain.ErrNotFound {
return err