fix errcheck issue (#28548)

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
This commit is contained in:
TheInvincible
2024-10-09 13:27:39 +02:00
committed by GitHub
co-authored by Ben Schumacher
parent 23623fc9c9
commit b49d86c24d
2 changed files with 4 additions and 2 deletions
-1
View File
@@ -76,7 +76,6 @@ issues:
channels/api4/data_retention.go|\
channels/api4/export_test.go|\
channels/api4/file_test.go|\
channels/api4/import_test.go|\
channels/api4/ip_filtering_test.go|\
channels/api4/job_test.go|\
channels/api4/license.go|\
+4 -1
View File
@@ -127,7 +127,10 @@ func TestImportInLocalMode(t *testing.T) {
received, _, err := th.SystemAdminClient.CreateJob(context.Background(), job)
require.NoError(t, err)
defer th.App.Srv().Store().Job().Delete(received.Id)
defer func() {
_, err = th.App.Srv().Store().Job().Delete(received.Id)
require.NoError(t, err, "Failed to delete job")
}()
cnt1, err := th.App.Srv().Store().Post().AnalyticsPostCount(&model.PostCountOptions{UsersPostsOnly: true})
require.NoError(t, err)