Skip to content

Commit 26330bb

Browse files
committed
sizebot: Fix wrong order of base, head arguments
The base and head arguments were flipped, so an n% decrease in bundle size was instead reported as an n% increase.
1 parent 97c5b01 commit 26330bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dangerfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function getBundleSizes(pathToSizesDir) {
9292
async function printResultsForChannel(baseResults, headResults) {
9393
// Take the JSON of the build response and
9494
// make an array comparing the results for printing
95-
const results = generateResultsArray(baseResults, headResults);
95+
const results = generateResultsArray(headResults, baseResults);
9696

9797
const packagesToShow = results
9898
.filter(

0 commit comments

Comments
 (0)