diff options
Diffstat (limited to 'src/modules/number/index.ts')
| -rw-r--r-- | src/modules/number/index.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts index f1dce04f..9381f000 100644 --- a/src/modules/number/index.ts +++ b/src/modules/number/index.ts @@ -113,7 +113,7 @@ export class NumberModule extends SimpleModuleBase { * @param options.fractionDigits The maximum number of digits to appear after the decimal point, for example `2` will round to 2 decimal points. Only one of `multipleOf` or `fractionDigits` should be passed. * * @throws When `min` is greater than `max`. - * @throws When `multipleOf` is negative. + * @throws When `multipleOf` is not a positive number. * @throws When `fractionDigits` is negative. * @throws When `fractionDigits` and `multipleOf` is passed in the same options object. * @@ -170,10 +170,6 @@ export class NumberModule extends SimpleModuleBase { multipleOf = fractionDigits == null ? undefined : 10 ** -fractionDigits, } = options; - if (max === min) { - return min; - } - if (max < min) { throw new FakerError(`Max ${max} should be greater than min ${min}.`); } |
