summaryrefslogtreecommitdiffstats
path: root/models/access_test.go
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-22 09:11:16 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-07-22 15:11:16 +0800
commit12a098920c03d147959516fda59a6dd6fe474a3c (patch)
treec8f10ce5dc02731b0795895684734998605266ea /models/access_test.go
parentcc384d767e40caa84c58b259853d9cbaaaab33fe (diff)
downloadgitea-12a098920c03d147959516fda59a6dd6fe474a3c.tar.gz
gitea-12a098920c03d147959516fda59a6dd6fe474a3c.zip
Fixed ineffectual assignments in tests (#7553)
Just makes it a bit more obvious which values we want to test for, and which ones we want to ignore.
Diffstat (limited to 'models/access_test.go')
-rw-r--r--models/access_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/access_test.go b/models/access_test.go
index db6f655a67..d0f0032547 100644
--- a/models/access_test.go
+++ b/models/access_test.go
@@ -55,13 +55,13 @@ func TestHasAccess(t *testing.T) {
assert.NoError(t, err)
assert.True(t, has)
- has, err = HasAccess(user1.ID, repo2)
+ _, err = HasAccess(user1.ID, repo2)
assert.NoError(t, err)
- has, err = HasAccess(user2.ID, repo1)
+ _, err = HasAccess(user2.ID, repo1)
assert.NoError(t, err)
- has, err = HasAccess(user2.ID, repo2)
+ _, err = HasAccess(user2.ID, repo2)
assert.NoError(t, err)
}