sizebot: Fix wrong order of base, head arguments (#20751)

The base and head arguments were flipped, so an n% decrease in bundle
size was instead reported as an n% increase.
This commit is contained in:
Andrew Clark
2021-02-05 15:45:25 -08:00
committed by GitHub
parent 84054f55ca
commit 70d9ae5111
+1 -1
View File
@@ -92,7 +92,7 @@ function getBundleSizes(pathToSizesDir) {
async function printResultsForChannel(baseResults, headResults) {
// Take the JSON of the build response and
// make an array comparing the results for printing
const results = generateResultsArray(baseResults, headResults);
const results = generateResultsArray(headResults, baseResults);
const packagesToShow = results
.filter(