mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
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:
parent
ab99856591
commit
d9981beb9d
2 changed files with 4 additions and 2 deletions
|
|
@ -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|\
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue