simplified conditional statement

This commit is contained in:
isaiM6
2022-08-01 16:24:46 -07:00
parent 6a8a687616
commit 99f119d262

View File

@@ -61,11 +61,7 @@ export function parseTemplateStringEV(
errorBound++
}
if (depth <= ENV_MAX_EXPAND_LIMIT && errorBound <= ENV_MAX_EXPAND_LIMIT) {
return E.right(result)
} else {
return E.left(ENV_EXPAND_LOOP)
}
return depth <= ENV_MAX_EXPAND_LIMIT && errorBound <= ENV_MAX_EXPAND_LIMIT ? E.right(result) : E.left(ENV_EXPAND_LOOP);
}
/**