From c7fd197efc5385756ec73ce7aa0b62cb3d962906 Mon Sep 17 00:00:00 2001 From: okayurisotto Date: Sun, 2 Jul 2023 18:08:47 +0900 Subject: [PATCH] cleanup(`ApPersonService.ts`): deadcode --- .../backend/src/core/activitypub/models/ApPersonService.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/backend/src/core/activitypub/models/ApPersonService.ts b/packages/backend/src/core/activitypub/models/ApPersonService.ts index d40f264300..5bc573932e 100644 --- a/packages/backend/src/core/activitypub/models/ApPersonService.ts +++ b/packages/backend/src/core/activitypub/models/ApPersonService.ts @@ -135,10 +135,6 @@ export class ApPersonService implements OnModuleInit { private validateActor(x: IObject, uri: string): IActor { const expectHost = this.punyHost(uri); - if (x == null) { - throw new Error('invalid Actor: object is null'); - } - if (!isActor(x)) { throw new Error(`invalid Actor type '${x.type}'`); }