mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-19 00:10:15 +00:00
prefer NoError/Error over Nil/NotNil (#12271)
This commit is contained in:
parent
b609a25014
commit
54513452a1
11 changed files with 34 additions and 34 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue