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 authored and zeripath committed 2019-07-23 20:28:43 +01:00
1 parent 54d96c79b5
commit 5e4e7d3df0
4 files changed
+8 -1

No files matched your search

+1
View File
@@ -88,6 +88,7 @@ func TestUpdateRepositoryVisibilityChanged(t *testing.T) {
// Get sample repo and change visibility
repo, err := GetRepositoryByID(9)
assert.NoError(t, err)
repo.IsPrivate = true
// Update it