Fixing some lint warnings

This commit is contained in:
Deluan
2016-03-26 22:43:13 -04:00
parent 9099e24413
commit 83e0a7b24c
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -143,7 +143,7 @@ func TestBaseRepository(t *testing.T) {
})
Convey("And the number of children should be 1", func() {
children := make([]TestEntity, 0)
var children []TestEntity
err := repo.loadChildren("parent", "ABC", &children)
So(err, ShouldBeNil)
So(len(children), ShouldEqual, 1)
@@ -241,7 +241,7 @@ func TestBaseRepository(t *testing.T) {
So(count, ShouldEqual, 2)
})
Convey("And the deleted record shouldn't be among the children", func() {
children := make([]TestEntity, 0)
var children []TestEntity
err := repo.loadChildren("parent", "AAA", &children)
So(err, ShouldBeNil)
So(len(children), ShouldEqual, 2)