Skip to content

Commit

Permalink
junhao review
Browse files Browse the repository at this point in the history
  • Loading branch information
davemarco committed Jan 10, 2025
1 parent b71dcb0 commit 0cdb800
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/LogFileManager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,9 @@ class LogFileManager {
}

const filteredLogEventMap = this.#decoder.getFilteredLogEventMap();
const numActiveEvents: number = (null === filteredLogEventMap) ?
this.#numEvents :
filteredLogEventMap.length;
const numActiveEvents: number = (null !== filteredLogEventMap) ?
filteredLogEventMap.length :
this.#numEvents;

if (0 === numActiveEvents) {
return;
Expand All @@ -398,7 +398,7 @@ class LogFileManager {
const decodedEvents = this.#decoder.decodeRange(
chunkBeginIdx,
chunkEndIdx,
null !== this.#decoder.getFilteredLogEventMap()
null !== filteredLogEventMap
);

if (null === decodedEvents) {
Expand Down

0 comments on commit 0cdb800

Please sign in to comment.