From abe4a95ea47e74f2324eb6da02003c2025d567bf Mon Sep 17 00:00:00 2001 From: Chris Hibbert Date: Wed, 26 Feb 2025 11:40:44 -0800 Subject: [PATCH] refactor: use arrow function style https://github.com/Agoric/agoric-sdk/wiki/Arrow-Function-Style --- packages/fast-usdc/test/pool-share-math.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/fast-usdc/test/pool-share-math.test.ts b/packages/fast-usdc/test/pool-share-math.test.ts index 912157112a6..c2565320885 100644 --- a/packages/fast-usdc/test/pool-share-math.test.ts +++ b/packages/fast-usdc/test/pool-share-math.test.ts @@ -209,9 +209,8 @@ const scaleAmount = (frac: number, amount: Amount<'nat'>) => { }; // ack: https://stackoverflow.com/a/2901298/7963 -function numberWithCommas(x) { - return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); -} +const numberWithCommas = x => + x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); const logAmt = amt => [ Number(amt.value),