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 e75a1e6 commit 56a70a9Copy full SHA for 56a70a9
jsEngine/engine/ResultRenderer.ts
@@ -85,14 +85,6 @@ export class ResultRenderer {
85
* @returns The simple object.
86
*/
87
convertToSimpleObject(value: unknown): unknown {
88
- if (value == null) {
89
- return undefined;
90
- }
91
-
92
- if (typeof value === 'string') {
93
- return value;
94
95
96
if (value instanceof MarkdownBuilder) {
97
return value.toMarkdown().content;
98
}
@@ -109,11 +101,6 @@ export class ResultRenderer {
109
101
return value.message;
110
102
111
103
112
- try {
113
- return JSON.stringify(value);
114
- } catch (e) {
115
- console.error(e);
116
117
104
+ return value;
118
105
119
106
0 commit comments