Skip to content

Commit

Permalink
bugfix: handle no-change
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Sep 8, 2024
1 parent 8c94bc0 commit b9074ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export function calculateTotalRow(data: Array<CompareResult>): CompareResult {
},
);
totalRow.remark =
totalRow.bytes === totalRow.baseBytes ? "no-change" :
totalRow.bytes > totalRow.baseBytes ? "increased" : "decreased";
return totalRow
}
Expand Down

0 comments on commit b9074ef

Please sign in to comment.