chore: format
This commit is contained in:
parent
53618b4a14
commit
4f943f1cc8
|
@ -12,12 +12,10 @@ export default class Range {
|
|||
}
|
||||
}
|
||||
|
||||
static value(rangeOrOther) {
|
||||
return rangeOrOther instanceof Range ? rangeOrOther.value() : rangeOrOther;
|
||||
}
|
||||
|
||||
value() {
|
||||
return 'undefined' === typeof this.max ? this.min : randomNumber(this.min, this.max, false);
|
||||
return 'undefined' === typeof this.max
|
||||
? this.min
|
||||
: randomNumber(this.min, this.max, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user