mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00:00
prefer NoError/Error over Nil/NotNil (#12271)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user