Fix errcheck issues in server/channels/jobs/resend_invitation_email/worker.go (#29353)

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
This commit is contained in:
AulakhHarsh 2024-11-27 16:37:31 +05:30 committed by GitHub
parent ab99856591
commit d9981beb9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -131,7 +131,6 @@ issues:
channels/jobs/helper_test.go|\
channels/jobs/hosted_purchase_screening/worker.go|\
channels/jobs/jobs.go|\
channels/jobs/resend_invitation_email/worker.go|\
channels/manualtesting/manual_testing.go|\
channels/store/localcachelayer/channel_layer.go|\
channels/store/localcachelayer/channel_layer_test.go|\

View file

@ -171,7 +171,10 @@ func (rseworker *ResendInvitationEmailWorker) GetDurations(job *model.Job) (int6
}
func (rseworker *ResendInvitationEmailWorker) TearDown(logger mlog.LoggerIFace, job *model.Job) {
rseworker.store.System().PermanentDeleteByName(job.Id)
if _, err := rseworker.store.System().PermanentDeleteByName(job.Id); err != nil {
logger.Error("Worker: Failed to tear down data", mlog.Err(err))
}
rseworker.setJobSuccess(logger, job)
}