瀏覽代碼

fix gofmt warning

Daniel Lee 8 年之前
父節點
當前提交
b7f023bc26
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/api/annotations_test.go

+ 1 - 1
pkg/api/annotations_test.go

@@ -192,7 +192,7 @@ func (repo *fakeAnnotationsRepo) Update(item *annotations.Item) error {
 	return nil
 	return nil
 }
 }
 func (repo *fakeAnnotationsRepo) Find(query *annotations.ItemQuery) ([]*annotations.ItemDTO, error) {
 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
 	return annotations, nil
 }
 }