From a15871560f80e07386c1dabb8370cd2664ecfd1f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 31 Jan 2020 16:56:52 +0100 Subject: Move to eslint --- server/helpers/custom-validators/activitypub/actor.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'server/helpers/custom-validators/activitypub/actor.ts') diff --git a/server/helpers/custom-validators/activitypub/actor.ts b/server/helpers/custom-validators/activitypub/actor.ts index fa58e163f..fec67823d 100644 --- a/server/helpers/custom-validators/activitypub/actor.ts +++ b/server/helpers/custom-validators/activitypub/actor.ts @@ -6,7 +6,7 @@ import { isHostValid } from '../servers' import { peertubeTruncate } from '@server/helpers/core-utils' function isActorEndpointsObjectValid (endpointObject: any) { - if (endpointObject && endpointObject.sharedInbox) { + if (endpointObject?.sharedInbox) { return isActivityPubUrlValid(endpointObject.sharedInbox) } @@ -101,8 +101,6 @@ function normalizeActor (actor: any) { actor.summary = null } } - - return } function isValidActorHandle (handle: string) { -- cgit v1.2.3