diff options
author | Stephen Solka <solka@hey.com> | 2020-07-19 05:53:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-19 12:53:40 +0300 |
commit | 54513452a1134de670467e5a8d5cebd768b3c7e4 (patch) | |
tree | 48e39d2e52daa88cf93431dd6b0642e482a5e018 /modules/repofiles/file_test.go | |
parent | b609a25014cf732ec444c132dc9fb892818281dc (diff) | |
download | gitea-54513452a1134de670467e5a8d5cebd768b3c7e4.tar.gz gitea-54513452a1134de670467e5a8d5cebd768b3c7e4.zip |
prefer NoError/Error over Nil/NotNil (#12271)
Diffstat (limited to 'modules/repofiles/file_test.go')
-rw-r--r-- | modules/repofiles/file_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repofiles/file_test.go b/modules/repofiles/file_test.go index 3cb4eb472b..aafe816a16 100644 --- a/modules/repofiles/file_test.go +++ b/modules/repofiles/file_test.go @@ -99,6 +99,6 @@ func TestGetFileResponseFromCommit(t *testing.T) { expectedFileResponse := getExpectedFileResponse() fileResponse, err := GetFileResponseFromCommit(repo, commit, branch, treePath) - assert.Nil(t, err) + assert.NoError(t, err) assert.EqualValues(t, expectedFileResponse, fileResponse) } |