1
0
forked from mirror/misskey

cleanup(ApNoteService.ts): deadcode

This commit is contained in:
okayurisotto 2023-07-02 13:36:23 +09:00
parent 1246382de4
commit b203dab852

View File

@ -74,10 +74,6 @@ export class ApNoteService {
public validateNote(object: IObject, uri: string): Error | null { public validateNote(object: IObject, uri: string): Error | null {
const expectHost = this.utilityService.extractDbHost(uri); const expectHost = this.utilityService.extractDbHost(uri);
if (object == null) {
return new Error('invalid Note: object is null');
}
if (!validPost.includes(getApType(object))) { if (!validPost.includes(getApType(object))) {
return new Error(`invalid Note: invalid object type ${getApType(object)}`); return new Error(`invalid Note: invalid object type ${getApType(object)}`);
} }