File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -152,11 +152,8 @@ func (i *RowRepoIter) nextRepository() error {
152
152
153
153
i .repository = repo
154
154
err = i .implementation .InitRepository (* repo )
155
- if err != nil {
156
- return err
157
- }
158
155
159
- return nil
156
+ return err
160
157
}
161
158
162
159
// Next gets the next row
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ func TestRepositoryPoolBasic(t *testing.T) {
45
45
require .Nil (repo .Repo )
46
46
require .True (ok )
47
47
48
- repo , ok = pool .GetPos (1 )
48
+ _ , ok = pool .GetPos (1 )
49
49
require .False (ok )
50
50
51
51
gitRepo := & git.Repository {}
@@ -56,9 +56,9 @@ func TestRepositoryPoolBasic(t *testing.T) {
56
56
require .Equal (gitRepo , repo .Repo )
57
57
require .True (ok )
58
58
59
- repo , ok = pool .GetPos (0 )
59
+ _ , ok = pool .GetPos (0 )
60
60
require .True (ok )
61
- repo , ok = pool .GetPos (2 )
61
+ _ , ok = pool .GetPos (2 )
62
62
require .False (ok )
63
63
}
64
64
@@ -148,11 +148,7 @@ func (d *testCommitIter) InitRepository(repo Repository) error {
148
148
149
149
func (d * testCommitIter ) Next () (sql.Row , error ) {
150
150
_ , err := d .iter .Next ()
151
- if err != nil {
152
- return nil , err
153
- }
154
-
155
- return nil , nil
151
+ return nil , err
156
152
}
157
153
158
154
func (d * testCommitIter ) Close () error {
You can’t perform that action at this time.
0 commit comments