From bcec136ee62ee9fcc0f0177e9dd0ac191a2cf5ee Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 13 Jun 2018 14:55:18 +0200 Subject: Fix lint --- server/lib/activitypub/process/process-delete.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib') diff --git a/server/lib/activitypub/process/process-delete.ts b/server/lib/activitypub/process/process-delete.ts index ff0caa343..3c830abea 100644 --- a/server/lib/activitypub/process/process-delete.ts +++ b/server/lib/activitypub/process/process-delete.ts @@ -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 } // --------------------------------------------------------------------------- -- cgit v1.2.3