We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80d5c9 commit 12db9e6Copy full SHA for 12db9e6
packages/theme/src/cli/utilities/repl/evaluator.ts
@@ -17,17 +17,6 @@ export interface EvaluationConfig {
17
}
18
19
export async function evaluate(config: EvaluationConfig): Promise<string | number | undefined> {
20
- try {
21
- return await evaluateSnippet(config)
22
-
23
- // eslint-disable-next-line no-catch-all/no-catch-all, @typescript-eslint/no-explicit-any
24
- } catch (error: any) {
25
- outputInfo(outputContent`${outputToken.errorText(error.message)}`)
26
- outputDebug(error.stack || 'Error backtrace not found')
27
- }
28
-}
29
30
-async function evaluateSnippet(config: EvaluationConfig): Promise<string | number | undefined> {
31
return (
32
(await evalResult(config)) ||
33
(await evalContext(config)) ||
0 commit comments