Skip to content

Commit

Permalink
refactor: apply review
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Feb 20, 2024
1 parent 920efdf commit 3d18e85
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/transactions/src/clarity/prettyPrint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ function formatTuple(cv: TupleCV, space: number, depth = 1): string {
const spaceBefore = formatSpace(space, depth, false);
const endSpace = formatSpace(space, depth, true);

return `{${spaceBefore}${items
.sort((a, b) => a[0].localeCompare(b[0]))
.join(`,${spaceBefore}`)}${endSpace}}`;
return `{${spaceBefore}${items.sort().join(`,${spaceBefore}`)}${endSpace}}`;
}

function exhaustiveCheck(param: never): never {
Expand Down

0 comments on commit 3d18e85

Please sign in to comment.