From 961db72adf9d973629c6fc54df8676e5f2f39946 Mon Sep 17 00:00:00 2001 From: Roman Galochkin Date: Fri, 21 Feb 2020 15:09:43 +0300 Subject: [PATCH] Removes future obsolete lines --- src/utility/lib/continuousDistribution.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/utility/lib/continuousDistribution.js b/src/utility/lib/continuousDistribution.js index 9c80d19d..8ae8a813 100644 --- a/src/utility/lib/continuousDistribution.js +++ b/src/utility/lib/continuousDistribution.js @@ -7,12 +7,6 @@ class ContinuousDistribution { * @param {number[]} ys */ constructor(xs, ys) { - if (!_.isArray(xs)) { - throw new Error('XS should be an array.'); - } - if (!_.isArray(ys)) { - throw new Error('YS should be an array.'); - } if (!this.validateHasLength(xs)) { throw new Error('You need at least one element.'); }