I forgot to pay attention to yarn format during merge of #1408 (#1452)

This commit is contained in:
Eoghan Murray
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 2ac93b18c7
commit c61c906e31
2 changed files with 25 additions and 22 deletions

View File

@@ -167,7 +167,10 @@ function isUserInteraction(event: eventWithTime): boolean {
* @param inactivePeriodThreshold - threshold of inactive time in milliseconds
* @returns periods of time consist with [start time, end time]
*/
export function getInactivePeriods(events: eventWithTime[], inactivePeriodThreshold: number) {
export function getInactivePeriods(
events: eventWithTime[],
inactivePeriodThreshold: number,
) {
const inactivePeriods: [number, number][] = [];
let lastActiveTime = events[0].timestamp;
for (const event of events) {