Skip to content

Commit 2daf76d

Browse files
committed
add reference comment
1 parent 4b7c055 commit 2daf76d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/sim/executor/execution/block-executor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ export class BlockExecutor {
361361
let hasChanges = false
362362

363363
for (const [key, value] of Object.entries(inputs)) {
364+
// isJSONString is a quick heuristic (checks for { or [), not a validator.
365+
// Invalid JSON is safely caught below - this just avoids JSON.parse on every string.
364366
if (typeof value !== 'string' || !isJSONString(value)) {
365367
continue
366368
}

0 commit comments

Comments
 (0)