]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/process/process-delete.ts
Fix lint
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / process / process-delete.ts
index ff0caa343062f04262003fb9a70e7dbd1b92117d..3c830abea7a529b11a06bc000e437750a254709d 100644 (file)
@@ -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
 }
 
 // ---------------------------------------------------------------------------