diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-07-22 09:11:16 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-07-22 15:11:16 +0800 |
commit | 12a098920c03d147959516fda59a6dd6fe474a3c (patch) | |
tree | c8f10ce5dc02731b0795895684734998605266ea /models/access_test.go | |
parent | cc384d767e40caa84c58b259853d9cbaaaab33fe (diff) | |
download | gitea-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.go | 6 |
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) } |