Added missing error checks in tests (#7554)

Whenever we assign a value to err, check for it being nil.
This commit is contained in:
Christian Muehlhaeuser 2019-07-23 21:28:43 +02:00 committed by zeripath
parent 54d96c79b5
commit 5e4e7d3df0
4 changed files with 8 additions and 1 deletions

View file

@ -18,6 +18,7 @@ func TestRepository_GetCodeActivityStats(t *testing.T) {
assert.NoError(t, err)
timeFrom, err := time.Parse(time.RFC3339, "2016-01-01T00:00:00+00:00")
assert.NoError(t, err)
code, err := bareRepo1.GetCodeActivityStats(timeFrom, "")
assert.NoError(t, err)