refactor(team): simplify cache expiration logic in TeamMessageFeedService
- Removed unnecessary line break in cache expiration condition for improved readability.
This commit is contained in:
parent
41f0b0d1d1
commit
e9dd7e0920
1 changed files with 1 additions and 2 deletions
|
|
@ -358,8 +358,7 @@ export class TeamMessageFeedService {
|
|||
const cached = this.cacheByTeam.get(teamName);
|
||||
const now = Date.now();
|
||||
const cacheDirty = this.dirtyTeams.has(teamName);
|
||||
const cacheExpired =
|
||||
!cached || now - cached.cachedAt >= MESSAGE_FEED_CACHE_MAX_AGE_MS;
|
||||
const cacheExpired = !cached || now - cached.cachedAt >= MESSAGE_FEED_CACHE_MAX_AGE_MS;
|
||||
if (cached && !cacheDirty && !cacheExpired) {
|
||||
return {
|
||||
teamName,
|
||||
|
|
|
|||
Loading…
Reference in a new issue