aboutsummaryrefslogtreecommitdiffstats
path: root/modules/repofiles/file_test.go
diff options
context:
space:
mode:
authorStephen Solka <solka@hey.com>2020-07-19 05:53:40 -0400
committerGitHub <noreply@github.com>2020-07-19 12:53:40 +0300
commit54513452a1134de670467e5a8d5cebd768b3c7e4 (patch)
tree48e39d2e52daa88cf93431dd6b0642e482a5e018 /modules/repofiles/file_test.go
parentb609a25014cf732ec444c132dc9fb892818281dc (diff)
downloadgitea-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.go2
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)
}