aboutsummaryrefslogtreecommitdiffstats
path: root/modules/repofiles/blob_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/blob_test.go
parentb609a25014cf732ec444c132dc9fb892818281dc (diff)
downloadgitea-54513452a1134de670467e5a8d5cebd768b3c7e4.tar.gz
gitea-54513452a1134de670467e5a8d5cebd768b3c7e4.zip
prefer NoError/Error over Nil/NotNil (#12271)
Diffstat (limited to 'modules/repofiles/blob_test.go')
-rw-r--r--modules/repofiles/blob_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repofiles/blob_test.go b/modules/repofiles/blob_test.go
index ddc23aeac3..8ba80347bf 100644
--- a/modules/repofiles/blob_test.go
+++ b/modules/repofiles/blob_test.go
@@ -35,6 +35,6 @@ func TestGetBlobBySHA(t *testing.T) {
SHA: "65f1bf27bc3bf70f64657658635e66094edbcb4d",
Size: 180,
}
- assert.Nil(t, err)
+ assert.NoError(t, err)
assert.Equal(t, expectedGBR, gbr)
}