From 9a3ef16704f926202744c11a162471cd7d560e7e Mon Sep 17 00:00:00 2001 From: Shinigami Date: Fri, 9 Feb 2024 20:39:17 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: ST-DDT --- test/modules/finance.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/modules/finance.spec.ts b/test/modules/finance.spec.ts index 3b6f49c99db..5c3549c1c36 100644 --- a/test/modules/finance.spec.ts +++ b/test/modules/finance.spec.ts @@ -166,9 +166,7 @@ describe('finance', () => { }); it('should set a specified length', () => { - let expected = faker.number.int(20); - - expected ||= 4; + const expected = faker.number.int(20) || 4; const mask = faker.finance.maskedNumber({ length: expected,