Skip to content

Commit

Permalink
sizebot: Fix wrong order of base, head arguments (#20751)
Browse files Browse the repository at this point in the history
The base and head arguments were flipped, so an n% decrease in bundle
size was instead reported as an n% increase.
  • Loading branch information
acdlite authored Feb 5, 2021
1 parent 4ecf119 commit 903384a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 903384a

Please sign in to comment.