From a2e0622ccb5bb1c294270b1e623716e4b42abef8 Mon Sep 17 00:00:00 2001 From: KS Nithin Date: Fri, 15 May 2026 18:21:11 +0530 Subject: [PATCH] fix: separate duplicate erms validation in insertErms (#67422) --- tools/challenge-helper-scripts/helpers/insert-erms.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/challenge-helper-scripts/helpers/insert-erms.ts b/tools/challenge-helper-scripts/helpers/insert-erms.ts index d60d6f29da2..e7009548e0c 100644 --- a/tools/challenge-helper-scripts/helpers/insert-erms.ts +++ b/tools/challenge-helper-scripts/helpers/insert-erms.ts @@ -1,9 +1,5 @@ // Update given value with markers (labels) const insertErms = (seedCode: string, erms: number[]): string => { - if (!erms || erms.length <= 1) { - throw Error('erms should be provided'); - } - if (erms.length <= 1) { throw Error('erms should contain 2 elements'); }