From f8884eaf8981e08587598c07592132e19d402c3f Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Thu, 22 Aug 2024 00:15:36 -0500 Subject: [PATCH] Remove useless exception --- javascript/src/lib/utils.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/javascript/src/lib/utils.js b/javascript/src/lib/utils.js index bcd64a02..b2c686c3 100644 --- a/javascript/src/lib/utils.js +++ b/javascript/src/lib/utils.js @@ -49,9 +49,6 @@ exports.get_answer = function(n) { continue; } if (type === 'str') { - if (value.length !== Number(size)) { - throw new Error('string length does not match'); - } return value; } return Number(value);