mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-15 22:01:59 -04:00
fix: separate duplicate erms validation in insertErms (#67422)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user