Skip to content

Commit

Permalink
Update src/services/LogFileManager/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Junhao Liao <[email protected]>
  • Loading branch information
davemarco and junhaoliao authored Jan 10, 2025
1 parent ea74e74 commit 537290c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 = filteredLogEventMap ?
filteredLogEventMap.length :
this.#numEvents;
const numActiveEvents: number = (null === filteredLogEventMap) ?
this.#numEvents :
filteredLogEventMap.length;

if (0 === numActiveEvents) {
return;
Expand Down

0 comments on commit 537290c

Please sign in to comment.