cleanup(ApPersonService.ts
): deadcode
This commit is contained in:
@@ -196,8 +196,6 @@ export class ApPersonService implements OnModuleInit {
|
|||||||
*/
|
*/
|
||||||
@bindThis
|
@bindThis
|
||||||
public async fetchPerson(uri: string): Promise<LocalUser | RemoteUser | null> {
|
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;
|
const cached = this.cacheService.uriPersonCache.get(uri) as LocalUser | RemoteUser | null;
|
||||||
if (cached) return cached;
|
if (cached) return cached;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user