mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Fix lint
This commit is contained in:
parent
90d4bb8125
commit
bcec136ee6
2 changed files with 4 additions and 2 deletions
|
@ -15,7 +15,7 @@ async function processDeleteActivity (activity: ActivityDelete) {
|
|||
|
||||
if (activity.actor === objectUrl) {
|
||||
let actor = await ActorModel.loadByUrl(activity.actor)
|
||||
if (!actor) return
|
||||
if (!actor) return undefined
|
||||
|
||||
if (actor.type === 'Person') {
|
||||
if (!actor.Account) throw new Error('Actor ' + actor.url + ' is a person but we cannot find it in database.')
|
||||
|
@ -45,7 +45,7 @@ async function processDeleteActivity (activity: ActivityDelete) {
|
|||
}
|
||||
}
|
||||
|
||||
return
|
||||
return undefined
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue