Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: ST-DDT <ST-DDT@gmx.de>
  • Loading branch information
Shinigami92 and ST-DDT committed Mar 18, 2024
1 parent f064d24 commit 9a3ef16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/modules/finance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9a3ef16

Please sign in to comment.