simplified conditional statement
This commit is contained in:
@@ -61,11 +61,7 @@ export function parseTemplateStringEV(
|
|||||||
errorBound++
|
errorBound++
|
||||||
}
|
}
|
||||||
|
|
||||||
if (depth <= ENV_MAX_EXPAND_LIMIT && errorBound <= ENV_MAX_EXPAND_LIMIT) {
|
return depth <= ENV_MAX_EXPAND_LIMIT && errorBound <= ENV_MAX_EXPAND_LIMIT ? E.right(result) : E.left(ENV_EXPAND_LOOP);
|
||||||
return E.right(result)
|
|
||||||
} else {
|
|
||||||
return E.left(ENV_EXPAND_LOOP)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user