Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
davemarco committed Oct 6, 2024
1 parent 3016d14 commit 93a46f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions new-log-viewer/src/services/LogFileManager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ class LogFileManager {
const numEvents: number = filteredLogEventMap ?
filteredLogEventMap.length :
this.#numEvents;

if (0 === numEvents) {
return EMPTY_PAGE_RESP;
}
Expand Down
7 changes: 4 additions & 3 deletions new-log-viewer/src/services/LogFileManager/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ import {
} from "../../utils/math";
import {getBasenameFromUrlOrDefault} from "../../utils/url";


/**
* Gets the data for the `PAGE_NUM` cursor.
*
* @param pageNum
* @param eventPositionOnPage
* @param numEvents
* @param pageSize
* @return Cursor data.
* @return Matching page and log event for the cursor (i.e. cursor data.)
*/
const getPageNumCursorData = (
pageNum: number,
Expand Down Expand Up @@ -76,7 +77,7 @@ const getValidLogEventIdx = (
* @param numEvents
* @param pageSize
* @param filteredLogEventMap
* @return Cursor data.
* @return Matching page and log event for the cursor (i.e. cursor data.)
*/
const getEventNumCursorData = (
logEventNum: Nullable<number>,
Expand All @@ -95,7 +96,7 @@ const getEventNumCursorData = (
*
* @param numEvents
* @param pageSize
* @return Cursor data.
* @return Matching page and log event for the cursor (i.e. cursor data.)
*/
const getLastEventCursorData = (
numEvents: number,
Expand Down

0 comments on commit 93a46f9

Please sign in to comment.