Skip to content

Commit

Permalink
Update packages/snaps-execution-environments/src/common/utils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
  • Loading branch information
FrederikBolding and Mrtenz authored Feb 21, 2024
1 parent 5f21f52 commit 02f241e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/snaps-execution-environments/src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export function isValidResponse(response: Record<string, unknown>) {
if (!isObject(response)) {
return false;
}

try {
// If the JSON is invalid this will throw and we should return false.
const size = getJsonSize(response);
Expand Down

0 comments on commit 02f241e

Please sign in to comment.