mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-01 15:00:08 +08:00
guard Job.LogClone against nil Job
This commit is contained in:
@@ -120,6 +120,9 @@ func (j *Job) IsValid() *AppError {
|
||||
}
|
||||
|
||||
func (j *Job) LogClone() any {
|
||||
if j == nil {
|
||||
return nil
|
||||
}
|
||||
return j.Auditable()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user