chore(lint): burn down remaining warnings to zero
This commit is contained in:
@@ -226,7 +226,11 @@ export class SlackAdapter implements ChannelAdapter {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await this.app!.client.users.info({ user: userId });
|
||||
const app = this.app;
|
||||
if (!app) {
|
||||
return userId;
|
||||
}
|
||||
const result = await app.client.users.info({ user: userId });
|
||||
const name = result.user?.real_name || result.user?.name || userId;
|
||||
this.userNameCache.set(userId, { name, expiresAt: now + this.userNameCacheTtlMs });
|
||||
if (this.userNameCache.size > this.userNameCacheMaxEntries) {
|
||||
|
||||
Reference in New Issue
Block a user