mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
cleanup(ApPersonService.ts
): deadcode
This commit is contained in:
parent
d3e23d9875
commit
c7fd197efc
@ -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}'`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user