Skip to content

Commit 558d957

Browse files
committed
Reformat code
1 parent 20f6e3d commit 558d957

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

extensions/ql-vscode/src/view/compare-performance/ComparePerformance.tsx

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -413,29 +413,31 @@ function ComparePerformanceWithData(props: {
413413

414414
const hasCacheHitMismatch = useRef<boolean>(false);
415415

416-
const rows = useMemo(() => Array.from(nameSet)
417-
.map((name) => {
418-
const before = from.getTupleCountInfo(name);
419-
const after = to.getTupleCountInfo(name);
420-
const beforeValue = metric.get(before);
421-
const afterValue = metric.get(after);
422-
if (beforeValue === afterValue) {
423-
return undefined!;
424-
}
425-
if (
426-
before.absentReason === AbsentReason.CacheHit ||
427-
after.absentReason === AbsentReason.CacheHit
428-
) {
429-
hasCacheHitMismatch.current = true;
430-
if (hideCacheHits) {
431-
return undefined!;
432-
}
433-
}
434-
const diff = afterValue - beforeValue;
435-
return { name, before, after, diff };
436-
})
437-
.filter((x) => !!x)
438-
.sort(getSortOrder(sortOrder)),
416+
const rows = useMemo(
417+
() =>
418+
Array.from(nameSet)
419+
.map((name) => {
420+
const before = from.getTupleCountInfo(name);
421+
const after = to.getTupleCountInfo(name);
422+
const beforeValue = metric.get(before);
423+
const afterValue = metric.get(after);
424+
if (beforeValue === afterValue) {
425+
return undefined!;
426+
}
427+
if (
428+
before.absentReason === AbsentReason.CacheHit ||
429+
after.absentReason === AbsentReason.CacheHit
430+
) {
431+
hasCacheHitMismatch.current = true;
432+
if (hideCacheHits) {
433+
return undefined!;
434+
}
435+
}
436+
const diff = afterValue - beforeValue;
437+
return { name, before, after, diff };
438+
})
439+
.filter((x) => !!x)
440+
.sort(getSortOrder(sortOrder)),
439441
[nameSet, from, to, metric, hideCacheHits, sortOrder],
440442
);
441443

0 commit comments

Comments
 (0)