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 /integrations/repofiles_delete_test.go | |
parent | b609a25014cf732ec444c132dc9fb892818281dc (diff) | |
download | gitea-54513452a1134de670467e5a8d5cebd768b3c7e4.tar.gz gitea-54513452a1134de670467e5a8d5cebd768b3c7e4.zip |
prefer NoError/Error over Nil/NotNil (#12271)
Diffstat (limited to 'integrations/repofiles_delete_test.go')
-rw-r--r-- | integrations/repofiles_delete_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/repofiles_delete_test.go b/integrations/repofiles_delete_test.go index 754f64023f..1fa316c41e 100644 --- a/integrations/repofiles_delete_test.go +++ b/integrations/repofiles_delete_test.go @@ -80,7 +80,7 @@ func testDeleteRepoFile(t *testing.T, u *url.URL) { t.Run("Delete README.md file", func(t *testing.T) { fileResponse, err := repofiles.DeleteRepoFile(repo, doer, opts) - assert.Nil(t, err) + assert.NoError(t, err) expectedFileResponse := getExpectedDeleteFileResponse(u) assert.NotNil(t, fileResponse) assert.Nil(t, fileResponse.Content) @@ -122,7 +122,7 @@ func testDeleteRepoFileWithoutBranchNames(t *testing.T, u *url.URL) { t.Run("Delete README.md without Branch Name", func(t *testing.T) { fileResponse, err := repofiles.DeleteRepoFile(repo, doer, opts) - assert.Nil(t, err) + assert.NoError(t, err) expectedFileResponse := getExpectedDeleteFileResponse(u) assert.NotNil(t, fileResponse) assert.Nil(t, fileResponse.Content) |