From a5ec35db1673159f0c485f0869ca9b53d9f95583 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Feb 2026 18:00:57 +0000 Subject: [PATCH] Fix lint error: use assert.NotEmpty instead of assert.Greater Co-authored-by: silverwind <115237+silverwind@users.noreply.github.com> --- services/issue/title_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/issue/title_test.go b/services/issue/title_test.go index 73cd670988..bf6da5de0b 100644 --- a/services/issue/title_test.go +++ b/services/issue/title_test.go @@ -88,7 +88,7 @@ func TestChangeTitleNormalChange(t *testing.T) { Type: issues_model.CommentTypeChangeTitle, }) assert.NoError(t, err) - assert.Greater(t, len(comments), 0, "Should have created a CommentTypeChangeTitle comment") + assert.NotEmpty(t, comments, "Should have created a CommentTypeChangeTitle comment") // Verify the last comment has the correct old and new titles lastComment := comments[len(comments)-1]