diff --git a/new-log-viewer/src/services/LogFileManager.ts b/new-log-viewer/src/services/LogFileManager.ts index 73e30bed..5d77bb66 100644 --- a/new-log-viewer/src/services/LogFileManager.ts +++ b/new-log-viewer/src/services/LogFileManager.ts @@ -241,7 +241,7 @@ class LogFileManager { this.#numFilteredEvents = filteredLogEventsIndices.length; for (let i = 0; i < this.#numFilteredEvents; i += this.#pageSize) { - let firstLogEventOnPageIdx: number = filteredLogEventsIndices[i] as number + const firstLogEventOnPageIdx: number = filteredLogEventsIndices[i] as number this.#firstLogEventNumPerPage.push(1 + firstLogEventOnPageIdx); //Need to minus one from page size to get correct index into filtered log events. @@ -252,7 +252,7 @@ class LogFileManager { lastPageIdx = this.#numFilteredEvents - 1 } - let lastLogEventOnPageIdx: number = filteredLogEventsIndices[lastPageIdx] as number + const lastLogEventOnPageIdx: number = filteredLogEventsIndices[lastPageIdx] as number this.#lastLogEventNumPerPage.push(1 + lastLogEventOnPageIdx); } } diff --git a/new-log-viewer/src/services/decoders/ClpIrDecoder.ts b/new-log-viewer/src/services/decoders/ClpIrDecoder.ts index fd694b7b..cf1fce80 100644 --- a/new-log-viewer/src/services/decoders/ClpIrDecoder.ts +++ b/new-log-viewer/src/services/decoders/ClpIrDecoder.ts @@ -1,9 +1,7 @@ import clpFfiJsModuleInit, {ClpIrStreamReader} from "clp-ffi-js"; import {Nullable} from "../../typings/common"; -import { - LogLevelFilter -} from "../../typings/logs"; + import { Decoder, DecodeResultType, diff --git a/new-log-viewer/src/services/decoders/JsonlDecoder.ts b/new-log-viewer/src/services/decoders/JsonlDecoder.ts index 298d24d7..176a61ac 100644 --- a/new-log-viewer/src/services/decoders/JsonlDecoder.ts +++ b/new-log-viewer/src/services/decoders/JsonlDecoder.ts @@ -208,7 +208,7 @@ class JsonlDecoder implements Decoder { * @return Array with indices as values (i.e [0, 1, 2, 3, ..., length - 1]) */ #createIndicesArray (length: number): number[] { - let filteredLogIndices: number[] = Array.from( + const filteredLogIndices: number[] = Array.from( {length: length}, (_, index) => index );