cleanup(ApPersonService.ts): deadcode

This commit is contained in:
okayurisotto 2023-07-02 18:09:29 +09:00
parent c7fd197efc
commit 50955427f6

View File

@ -196,8 +196,6 @@ export class ApPersonService implements OnModuleInit {
*/
@bindThis
public async fetchPerson(uri: string): Promise<LocalUser | RemoteUser | null> {
if (typeof uri !== 'string') throw new Error('uri is not string');
const cached = this.cacheService.uriPersonCache.get(uri) as LocalUser | RemoteUser | null;
if (cached) return cached;