fix gofmt warning

This commit is contained in:
Daniel Lee 2017-12-21 08:34:57 +01:00
parent 3ae1bf0c16
commit b7f023bc26

View File

@ -192,7 +192,7 @@ func (repo *fakeAnnotationsRepo) Update(item *annotations.Item) error {
return nil
}
func (repo *fakeAnnotationsRepo) Find(query *annotations.ItemQuery) ([]*annotations.ItemDTO, error) {
annotations := []*annotations.ItemDTO{&annotations.ItemDTO{Id: 1}}
annotations := []*annotations.ItemDTO{{Id: 1}}
return annotations, nil
}