1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

chore(lint): add lint to the CI and make it happy (#685)

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/685
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
Earl Warren 2025-07-11 07:57:23 +00:00 committed by earl-warren
parent 5e3cb5468c
commit 91be87f293
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
10 changed files with 40 additions and 36 deletions

View file

@ -387,10 +387,8 @@ func TestReporterReportLog(t *testing.T) {
err := reporter.ReportLog(testCase.noMore)
if testCase.err == nil {
assert.NoError(t, err)
} else {
if assert.ErrorIs(t, err, testCase.err) {
assert.Equal(t, err.Error(), testCase.err.Error())
}
} else if assert.ErrorIs(t, err, testCase.err) {
assert.Equal(t, err.Error(), testCase.err.Error())
}
if testCase.sent != "" {
assert.Equal(t, testCase.sent, sent)