Skip to content

Commit 86d0e73

Browse files
committed
lint
1 parent ab601f7 commit 86d0e73

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/bundle-size-checker/src/renderMarkdownReport.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ export function renderMarkdownReportContent(comparison, { track } = {}) {
8585

8686
if (track && track.length > 0) {
8787
const trackedEntries = track.map((bundleId) => {
88-
const entry = comparison.entries.find((e) => e.id === bundleId);
89-
if (!entry) {
88+
const trackedEntry = comparison.entries.find((entry) => entry.id === bundleId);
89+
if (!trackedEntry) {
9090
throw new Error(`Tracked bundle not found in head snapshot: ${bundleId}`);
9191
}
92-
return entry;
92+
return trackedEntry;
9393
});
9494

9595
// Calculate totals only for tracked bundles

packages/bundle-size-checker/src/renderMarkdownReport.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@ describe('renderMarkdownReport', () => {
401401
await expect(
402402
renderMarkdownReport(mockPrInfo, undefined, {
403403
track: ['@mui/material/Button/index.js', '@mui/material/NonExistent/index.js'],
404-
})
405-
).rejects.toThrow('Tracked bundle not found in head snapshot: @mui/material/NonExistent/index.js');
404+
}),
405+
).rejects.toThrow(
406+
'Tracked bundle not found in head snapshot: @mui/material/NonExistent/index.js',
407+
);
406408
});
407409
});

0 commit comments

Comments
 (0)