mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 08:45:33 +02:00
Added missing error checks in tests (#7554)
Whenever we assign a value to err, check for it being nil.
This commit is contained in:
1 parent
54d96c79b5
commit
5e4e7d3df0
4 files changed
+8
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user