Skip to content

Commit 62f3b4f

Browse files
committed
Reformat code again
Only contains formatting changes
1 parent 6f7eb74 commit 62f3b4f

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

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

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -416,30 +416,29 @@ function ComparePerformanceWithData(props: {
416416
const rows = useMemo(() => {
417417
hasCacheHitMismatch.current = false;
418418
return 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) {
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) {
425433
return undefined!;
426434
}
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)),
441-
[nameSet, from, to, metric, hideCacheHits, sortOrder],
442-
);
435+
}
436+
const diff = afterValue - beforeValue;
437+
return { name, before, after, diff };
438+
})
439+
.filter((x) => !!x)
440+
.sort(getSortOrder(sortOrder));
441+
}, [nameSet, from, to, metric, hideCacheHits, sortOrder]);
443442

444443
const { totalBefore, totalAfter, totalDiff } = useMemo(() => {
445444
let totalBefore = 0;

0 commit comments

Comments
 (0)