Skip to content

Commit

Permalink
chore: use boolean probability instead of magic numbers (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Nov 9, 2022
1 parent 99b6fb2 commit f1f4ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/git/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class GitModule {
} = {}
): string {
const {
merge = this.faker.datatype.number({ min: 0, max: 4 }) === 0,
merge = this.faker.datatype.boolean({ probability: 0.2 }),
eol = 'CRLF',
refDate,
} = options;
Expand Down

0 comments on commit f1f4ad4

Please sign in to comment.