From 4f943f1cc8d057a11c6914c61301047016a0accf Mon Sep 17 00:00:00 2001 From: cha0s Date: Fri, 1 Apr 2022 07:01:44 -0500 Subject: [PATCH] chore: format --- packages/math/src/range.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/math/src/range.js b/packages/math/src/range.js index acf6117..861ad53 100644 --- a/packages/math/src/range.js +++ b/packages/math/src/range.js @@ -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); } }