refactor(team): simplify cache expiration logic in TeamMessageFeedService

- Removed unnecessary line break in cache expiration condition for improved readability.
This commit is contained in:
777genius 2026-04-19 22:05:19 +03:00
parent 41f0b0d1d1
commit e9dd7e0920

View file

@ -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,