fix: separate duplicate erms validation in insertErms (#67422)

This commit is contained in:
KS Nithin
2026-05-15 18:21:11 +05:30
committed by GitHub
parent 12be3d283b
commit a2e0622ccb

View File

@@ -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');
}