chore: format

This commit is contained in:
cha0s 2022-04-01 07:01:44 -05:00
parent 53618b4a14
commit 4f943f1cc8

View File

@ -12,12 +12,10 @@ export default class Range {
} }
} }
static value(rangeOrOther) {
return rangeOrOther instanceof Range ? rangeOrOther.value() : rangeOrOther;
}
value() { 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);
} }
} }