[MM-28761] Fix errcheck linter issues in hosted_purchase_screening worker (#30624)

This commit is contained in:
Ben Schumacher
2025-04-29 08:57:52 +02:00
committed by GitHub
parent 5ee308bd83
commit d0c4780eb1
2 changed files with 4 additions and 2 deletions
-1
View File
@@ -105,7 +105,6 @@ issues:
channels/app/team_test.go|\
channels/app/upload.go|\
channels/jobs/batch_worker_test.go|\
channels/jobs/hosted_purchase_screening/worker.go|\
channels/store/localcachelayer/channel_layer.go|\
channels/store/localcachelayer/channel_layer_test.go|\
channels/store/localcachelayer/emoji_layer.go|\
@@ -42,7 +42,10 @@ func MakeWorker(jobServer *jobs.JobServer, license *model.License, screenTimeSto
}
if now.After(time.UnixMilli(screenTime).Add(waitForScreeningDuration)) {
screenTimeStore.PermanentDeleteByName(model.SystemHostedPurchaseNeedsScreening)
_, err = screenTimeStore.PermanentDeleteByName(model.SystemHostedPurchaseNeedsScreening)
if err != nil {
return err
}
}
return nil
}