From 490403abfb1e314bf01f8b8a5f2d64324d1cb710 Mon Sep 17 00:00:00 2001 From: metersphere-bot <78466014+metersphere-bot@users.noreply.github.com> Date: Fri, 2 Jul 2021 12:26:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E8=A1=A8=E8=BE=BE=E5=BC=8F=E6=A0=A1=E9=AA=8C=20(#4324)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: chenjianxing --- frontend/src/common/js/cron.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/frontend/src/common/js/cron.js b/frontend/src/common/js/cron.js index 0c8f6184b0..fb1960d093 100644 --- a/frontend/src/common/js/cron.js +++ b/frontend/src/common/js/cron.js @@ -312,26 +312,12 @@ function checkListField(value, minimal, maximal ) { values[j] = st[j]; } - var previousValue = -1; - for (var i= 0; i < values.length; i++) { var currentValue = values[i]; if (!checkIntValue(currentValue, minimal, maximal, true)) { return false; } - - try { - var val = parseInt(currentValue, 10); - - if (val <= previousValue) { - return false; - } else { - previousValue = val; - } - } catch (e) { - // we have always an int - } } return true;