diff options
| author | ST-DDT <[email protected]> | 2022-11-09 17:49:33 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-09 17:49:33 +0100 |
| commit | f1f4ad49a55574b60e0c03f9fb3e5e85ce072fd2 (patch) | |
| tree | b0b327a77069cb5457fcb8e36a0a978d029ca00a /src/modules/git/index.ts | |
| parent | 99b6fb2c8d6d3e8ead53d7cc8d58bf615408860d (diff) | |
| download | faker-f1f4ad49a55574b60e0c03f9fb3e5e85ce072fd2.tar.xz faker-f1f4ad49a55574b60e0c03f9fb3e5e85ce072fd2.zip | |
chore: use boolean probability instead of magic numbers (#1540)
Diffstat (limited to 'src/modules/git/index.ts')
| -rw-r--r-- | src/modules/git/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/git/index.ts b/src/modules/git/index.ts index a0113a81..336da820 100644 --- a/src/modules/git/index.ts +++ b/src/modules/git/index.ts @@ -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; |
